##// END OF EJS Templates
monoblue: don't show '[up]' in file view when in root directory already
av6 -
r38203:9ed35270 default
parent child Browse files
Show More
@@ -33,13 +33,7 b''
33 33 <p class="files">{path|escape} {alltags}</p>
34 34
35 35 <table>
36 <tr class="parity{upparity}">
37 <td>drwxr-xr-x</td>
38 <td></td>
39 <td></td>
40 <td><a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}">[up]</a></td>
41 <td class="link">&nbsp;</td>
42 </tr>
36 {ifeq(path, up, '', updirentry)}
43 37 {dentries%direntry}
44 38 {fentries%fileentry}
45 39 </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>drwxr-xr-x</td>
65 <td></td>
66 <td></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>drwxr-xr-x</td>
@@ -312,13 +312,7 b' manifest with descending (monoblue)'
312 312 <p class="files">/ <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></p>
313 313
314 314 <table>
315 <tr class="parity0">
316 <td>drwxr-xr-x</td>
317 <td></td>
318 <td></td>
319 <td><a href="/file/tip/?style=monoblue">[up]</a></td>
320 <td class="link">&nbsp;</td>
321 </tr>
315
322 316
323 317 <tr class="parity1">
324 318 <td>drwxr-xr-x</td>
@@ -754,7 +754,6 b' Set up the repo'
754 754 <li><a href="/graph/tip?style=monoblue">graph</a></li>
755 755 <li><a href="/rev/tip?style=monoblue">changeset</a></li>
756 756 <li><a href="/archive/tip.zip">zip</a></li>
757 <td><a href="/file/tip/?style=monoblue">[up]</a></td>
758 757 <a href="/file/tip/dir?style=monoblue">dir</a>
759 758 <a href="/file/tip/dir/?style=monoblue"></a>
760 759 <td><a href="/file/tip/dir?style=monoblue">files</a></td>
@@ -817,7 +816,6 b' Set up the repo'
817 816 <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
818 817 <li><a href="/rev/xyzzy?style=monoblue">changeset</a></li>
819 818 <li><a href="/archive/xyzzy.zip">zip</a></li>
820 <td><a href="/file/xyzzy/?style=monoblue">[up]</a></td>
821 819 <a href="/file/xyzzy/dir?style=monoblue">dir</a>
822 820 <a href="/file/xyzzy/dir/?style=monoblue"></a>
823 821 <td><a href="/file/xyzzy/dir?style=monoblue">files</a></td>
@@ -812,6 +812,10 b" no '[up]' entry in file view when in roo"
812 812 [1]
813 813 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=gitweb' | grep -F '[up]'
814 814 <a href="/file/tip/?style=gitweb">[up]</a>
815 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=monoblue' | grep -F '[up]'
816 [1]
817 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=monoblue' | grep -F '[up]'
818 <a href="/file/tip/?style=monoblue">[up]</a>
815 819
816 820 no style can be loaded from directories other than the specified paths
817 821
General Comments 0
You need to be logged in to leave comments. Login now