Download:
child 26:e17c17c5505a
parent 24:d39306bfc3f4
25:16df18e40a1b
Anton Shestakov <av6@dwimlabs.net>, Thu, 31 May 2018 21:18:00 +0800
labels: actually iterate over badges

2 файлов изменено, 3 вставок(+), 2 удалений(-) [+]
templates/kit/map file | annotate | diff | comparison | revisions
templates/kit/summary.tmpl file | annotate | diff | comparison | revisions
--- a/templates/kit/map Thu May 31 21:13:39 2018 +0800
+++ b/templates/kit/map Thu May 31 21:18:00 2018 +0800
@@ -294,12 +294,13 @@
{rename%filelogrename}
</td>
</tr>'
+labelentry = '<span class="uk-badge kit-badge-label">{label|escape}</span> '
archiveentry = '<a class="uk-button uk-button-small" href="{url|urlescape}archive/{symrev}{extension}{ifeq(path, '/', '', path|urlescape)}">{type|escape}</a>'
indexentry = '
<tr>
<td>
<a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a>
- {ifeq(count(labels), 0, '', '<span class="uk-badge kit-badge-label">{join(labels, ', ')|escape}</span>')}
+ {labels%labelentry}
</td>
<td class="uk-width-1-1 uk-text-break kit-white-space-normal">{description}</td>
<td>{contact|obfuscate}</td>
--- a/templates/kit/summary.tmpl Thu May 31 21:13:39 2018 +0800
+++ b/templates/kit/summary.tmpl Thu May 31 21:18:00 2018 +0800
@@ -25,7 +25,7 @@
<div class="uk-clearfix uk-margin-top">
<h2>
{repo|escape}
- {ifeq(count(labels), 0, '', '<span class="uk-badge kit-badge-label">{join(labels, ', ')|escape}</span>')}
+ {labels%labelentry}
<div class="uk-button-group uk-float-right">
{archives%archiveentry}
</div>