From dd24aa198749302cf99c10a8cd3e056866119d31 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 25 Feb 2024 17:40:23 -0800 Subject: [PATCH] Quick mark Explicit link on photo permalink page --- web/templates/photo/permalink.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/templates/photo/permalink.html b/web/templates/photo/permalink.html index 5fbb2f8..fdeb3b3 100644 --- a/web/templates/photo/permalink.html +++ b/web/templates/photo/permalink.html @@ -87,6 +87,18 @@ {{.Photo.Caption}} {{else}}No caption{{end}} + + {{if and (.CurrentUser.IsAdmin) (not .Photo.Explicit)}} +
+ + + Mark photo as Explicit + +
+ {{end}} + {{template "like-example" .}}