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:
2026-08-10 12:52:52 +10:00
parent 9158681001
commit 83d75cb29f
6 changed files with 86 additions and 1 deletions

View File

@@ -29,7 +29,12 @@ func (a *App) Home(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/t/"+pid, http.StatusFound)
return
}
a.render(w, r, "index", "Home", nil, "")
recent, err := a.Queries.ListRecentScansWithTag(r.Context(), 8)
if err != nil {
// Non-fatal: home still renders without the recent list.
recent = nil
}
a.render(w, r, "index", "Home", recent, "")
}
// PublicTag renders the unauthenticated tag page: setup prompt, return details,