Download:
child 15:b9b29c2fe1de
parent 13:54670d87f0ae
14:5cd490f68c80
Anton Shestakov <av6@dwimlabs.net>, Sat, 12 Aug 2017 13:27:40 +0800
manifest: move ".."/"[up]" entry to map file and show it only when needed

2 файлов изменено, 11 вставок(+), 8 удалений(-) [+]
templates/kit/manifest.tmpl file | annotate | diff | comparison | revisions
templates/kit/map file | annotate | diff | comparison | revisions
--- a/templates/kit/manifest.tmpl Sat Aug 12 13:20:32 2017 +0800
+++ b/templates/kit/manifest.tmpl Sat Aug 12 13:27:40 2017 +0800
@@ -49,14 +49,7 @@
</h2>
<table class="uk-table uk-table-hover uk-text-nowrap">
- <tr>
- <td class="uk-width-1-1 uk-text-break">
- <a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}"><i class="uk-icon-folder-open-o kit-item-icon"></i>..</a>
- </td>
- <td></td>
- <td class="kit-monospace">drwxr-xr-x</td>
- <td></td>
- </tr>
+ {ifeq(path, '/', '', '{updirentry}')}
{dentries%direntry}
{fentries%fileentry}
</table>
--- a/templates/kit/map Sat Aug 12 13:20:32 2017 +0800
+++ b/templates/kit/map Sat Aug 12 13:27:40 2017 +0800
@@ -64,6 +64,16 @@
searchentry = changelogentry.tmpl
changeset = changeset.tmpl
manifest = manifest.tmpl
+updirentry = '
+ <tr>
+ <td class="uk-width-1-1 uk-text-break kit-white-space-normal">
+ <a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}"><i class="uk-icon-folder-open-o kit-item-icon"></i>..</a>
+ </td>
+ <td></td>
+ <td></td>
+ <td class="kit-monospace">drwxr-xr-x</td>
+ <td></td>
+ </tr>'
direntry = '
<tr>
<td class="uk-width-1-1 uk-text-break kit-white-space-normal">