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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user