##// END OF EJS Templates
gitweb: don't show '[up]' in file view when in root directory already
av6 -
r38202:d6aa1fc8 default
parent child Browse files
Show More
@@ -30,13 +30,7 b' files |'
30 30
31 31 <div class="title">{path|escape} {alltags}</div>
32 32 <table cellspacing="0">
33 <tr class="parity{upparity}">
34 <td style="font-family:monospace">drwxr-xr-x</td>
35 <td style="font-family:monospace"></td>
36 <td style="font-family:monospace"></td>
37 <td><a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}">[up]</a></td>
38 <td class="link">&nbsp;</td>
39 </tr>
33 {ifeq(path, up, '', updirentry)}
40 34 {dentries%direntry}
41 35 {fentries%fileentry}
42 36 </table>
@@ -59,6 +59,16 b" fileellipses = '...'"
59 59 changelogentry = changelogentry.tmpl
60 60 changeset = changeset.tmpl
61 61 manifest = manifest.tmpl
62 updirentry = '
63 <tr class="parity{upparity}">
64 <td style="font-family:monospace">drwxr-xr-x</td>
65 <td style="font-family:monospace"></td>
66 <td style="font-family:monospace"></td>
67 <td>
68 <a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}">[up]</a>
69 </td>
70 <td class="link">&nbsp;</td>
71 </tr>'
62 72 direntry = '
63 73 <tr class="parity{parity}">
64 74 <td style="font-family:monospace">drwxr-xr-x</td>
@@ -425,13 +425,7 b' manifest with descending (gitweb)'
425 425
426 426 <div class="title">/ <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> <span class="tagtag" title="tip">tip</span> </span></div>
427 427 <table cellspacing="0">
428 <tr class="parity0">
429 <td style="font-family:monospace">drwxr-xr-x</td>
430 <td style="font-family:monospace"></td>
431 <td style="font-family:monospace"></td>
432 <td><a href="/file/tip/?style=gitweb">[up]</a></td>
433 <td class="link">&nbsp;</td>
434 </tr>
428
435 429
436 430 <tr class="parity1">
437 431 <td style="font-family:monospace">drwxr-xr-x</td>
@@ -516,7 +516,6 b' Set up the repo'
516 516
517 517 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=gitweb' | egrep $REVLINKS
518 518 <a href="/rev/tip?style=gitweb">changeset</a> | <a href="/archive/tip.zip">zip</a> |
519 <td><a href="/file/tip/?style=gitweb">[up]</a></td>
520 519 <a href="/file/tip/dir?style=gitweb">dir</a>
521 520 <a href="/file/tip/dir/?style=gitweb"></a>
522 521 <a href="/file/tip/dir?style=gitweb">files</a>
@@ -590,7 +589,6 b' Set up the repo'
590 589
591 590 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=gitweb' | egrep $REVLINKS
592 591 <a href="/rev/xyzzy?style=gitweb">changeset</a> | <a href="/archive/xyzzy.zip">zip</a> |
593 <td><a href="/file/xyzzy/?style=gitweb">[up]</a></td>
594 592 <a href="/file/xyzzy/dir?style=gitweb">dir</a>
595 593 <a href="/file/xyzzy/dir/?style=gitweb"></a>
596 594 <a href="/file/xyzzy/dir?style=gitweb">files</a>
@@ -808,6 +808,10 b" no '[up]' entry in file view when in roo"
808 808 [1]
809 809 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=coal' | grep -F '[up]'
810 810 <a href="/file/tip/?style=coal">[up]</a>
811 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=gitweb' | grep -F '[up]'
812 [1]
813 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=gitweb' | grep -F '[up]'
814 <a href="/file/tip/?style=gitweb">[up]</a>
811 815
812 816 no style can be loaded from directories other than the specified paths
813 817
General Comments 0
You need to be logged in to leave comments. Login now