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