Present tags more nicely

This commit is contained in:
2022-05-27 22:00:24 +09:30
parent cbe455b566
commit f8060fbef6
3 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,9 @@
<a href="{{ .URL }}">{{ niceURL .URL }}</a>
</td>
<td>
{{ join .Tags ", " }}
{{ range .Tags }}
<span class="label primary">{{ . }}</span>
{{ end }}
</td>
<td class="show-for-large">{{ (nicetime .TimestampCreated).HumanDuration }} ago</td>
<td class="show-for-large">{{ (nicetime .TimestampLastScraped).HumanDuration }} ago</td>

View File

@@ -12,11 +12,12 @@
<div class="small-12 large-6 cell">
{{ range .tags }}
<a href="#"
class=""
title="remove {{ . }}"
hx-trigger="click"
hx-target="#label-widget"
hx-post="/tags?remove={{ . }}">[-]</a>
{{ . }}
<span class="label primary">{{ . }}</span>
{{ end }}
<input type="hidden" name="tags_hidden" value="{{ .tags_hidden }}">