home: recent-scans list (links + tag ids); admin tags: item_type column, searchable tag code/description/owner; admin photo upload: drop imageEditor (unbundled JS); owner edit photo upload confirmed
This commit is contained in:
@@ -26,5 +26,22 @@
|
||||
<a href="/what-is-this" class="hover:underline">What is this?</a> ·
|
||||
<a href="/contact" class="hover:underline">Get in touch</a>
|
||||
</p>
|
||||
|
||||
{{if .Data}}
|
||||
<div class="mx-auto mt-12 max-w-2xl">
|
||||
<h2 class="text-xl font-bold text-left">Recently scanned tags</h2>
|
||||
<ul class="mt-3 divide-y divide-stone-200 rounded-xl border border-stone-200 bg-white shadow-sm">
|
||||
{{range .Data}}
|
||||
<li class="flex items-center justify-between px-4 py-3">
|
||||
<a href="/t/{{.TagCode}}" class="flex items-center gap-3 hover:opacity-80">
|
||||
<span class="font-mono text-xs text-stone-500">{{.TagCode}}</span>
|
||||
<span class="text-sm font-medium text-stone-800">{{if .Description.Valid}}{{.Description.String}}{{else}}{{if .ItemType.Valid}}{{.ItemType.String}}{{else}}Item{{end}}{{end}}</span>
|
||||
</a>
|
||||
<span class="text-xs text-stone-400">{{.ScannedAt.Time.Local.Format "2 Jan 3:04 pm"}}{{if .LocationShared}} · 📍{{end}}</span>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user