Download:
child 14:5cd490f68c80
parent 12:b336f622574b
13:54670d87f0ae
Anton Shestakov <av6@dwimlabs.net>, Sat, 12 Aug 2017 13:20:32 +0800
manifest: add folder/file icons

3 файлов изменено, 7 вставок(+), 3 удалений(-) [+]
templates/kit/manifest.tmpl file | annotate | diff | comparison | revisions
templates/kit/map file | annotate | diff | comparison | revisions
templates/static/style-kit.css file | annotate | diff | comparison | revisions
--- a/templates/kit/manifest.tmpl Sat Oct 22 21:29:15 2016 +0800
+++ b/templates/kit/manifest.tmpl Sat Aug 12 13:20:32 2017 +0800
@@ -51,7 +51,7 @@
<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}">[up]</a>
+ <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>
--- a/templates/kit/map Sat Oct 22 21:29:15 2016 +0800
+++ b/templates/kit/map Sat Aug 12 13:20:32 2017 +0800
@@ -67,7 +67,7 @@
direntry = '
<tr>
<td class="uk-width-1-1 uk-text-break kit-white-space-normal">
- <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a>
+ <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}"><i class="uk-icon-folder-o kit-item-icon"></i>{basename|escape}/</a>
<a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a>
</td>
<td></td>
@@ -79,7 +79,7 @@
fileentry = '
<tr>
<td class="uk-width-1-1 uk-text-break kit-white-space-normal">
- <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
+ <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}"><i class="uk-icon-file-o kit-item-icon"></i>{basename|escape}</a>
</td>
<td>{size}</td>
<td class="kit-monospace">{permissions|permissions}</td>
--- a/templates/static/style-kit.css Sat Oct 22 21:29:15 2016 +0800
+++ b/templates/static/style-kit.css Sat Aug 12 13:20:32 2017 +0800
@@ -48,6 +48,10 @@
white-space: normal;
}
+.kit-item-icon {
+ margin-right: 5px;
+}
+
.kit-badge-branch-head,
.kit-badge-branch-open {
background-color: #00a8e6;