Quick mark Explicit link on photo permalink page

This commit is contained in:
Noah Petherbridge 2024-02-25 17:40:23 -08:00
parent 2820cf581e
commit dd24aa1987

View File

@ -87,6 +87,18 @@
{{.Photo.Caption}}
{{else}}<em>No caption</em>{{end}}
<!-- Admin actions: quick mark photo as explicit -->
{{if and (.CurrentUser.IsAdmin) (not .Photo.Explicit)}}
<div class="mt-2">
<a href="/admin/photo/mark-explicit?photo_id={{.Photo.ID}}&next={{.Request.URL}}"
class="has-text-danger is-size-7"
onclick="return confirm('Do you want to mark this photo as Explicit?')">
<i class="fa fa-peace mr-1"></i>
Mark photo as Explicit
</a>
</div>
{{end}}
<!-- Who likes this photo? -->
{{template "like-example" .}}