admin: photo preview fixed size (inline styles); preview mode ?preview=1 (banner, no scan functionality) with Preview buttons in admin row action + owner edit link

This commit is contained in:
2026-08-10 16:36:22 +10:00
parent eb3e4f45ad
commit ae0290b343
3 changed files with 13 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import (
type publicData struct {
UpdatedAt pgtype.Timestamptz
Preview bool
ID int64
TagCode string
Status string
@@ -48,6 +49,7 @@ func (a *App) PublicTag(w http.ResponseWriter, r *http.Request) {
}
pd := publicData{
Preview: r.URL.Query().Get("preview") == "1",
UpdatedAt: tag.UpdatedAt,
ID: tag.ID,
TagCode: tag.TagCode,