diff --git a/frontend/internal/handlers/tags.go b/frontend/internal/handlers/tags.go index 6b67387..4469160 100644 --- a/frontend/internal/handlers/tags.go +++ b/frontend/internal/handlers/tags.go @@ -228,7 +228,7 @@ func (a *App) UploadPhoto(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "text/html; charset=utf-8") - fmt.Fprintf(w, `

Photo uploaded ✓ — refresh to see it on the tag page.

`) + fmt.Fprintf(w, `
Uploaded photo

Photo uploaded ✓

`, photoURL) } // CloseTag lets an owner close (retire) their tag. Data is kept; the tag page diff --git a/frontend/templates/tag-edit.html b/frontend/templates/tag-edit.html index 951f644..de80bcf 100644 --- a/frontend/templates/tag-edit.html +++ b/frontend/templates/tag-edit.html @@ -25,15 +25,8 @@
- - {{if .Data.PhotoUrl.Valid}}Current photo{{end}} - -
- - - Uploading… -
-

Upload a photo, or paste a URL above.

+ +
@@ -56,5 +49,19 @@ Cancel
+ + +
+

Photo

+
+ {{if .Data.PhotoUrl.Valid}}Current photo{{end}} +
+ + + Uploading… +
+

Upload a photo — it shows on your public tag page and in the admin.

+
+
{{end}}