Quick mark Explicit link on photo permalink page
This commit is contained in:
parent
2820cf581e
commit
dd24aa1987
|
@ -87,6 +87,18 @@
|
||||||
{{.Photo.Caption}}
|
{{.Photo.Caption}}
|
||||||
{{else}}<em>No caption</em>{{end}}
|
{{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? -->
|
<!-- Who likes this photo? -->
|
||||||
{{template "like-example" .}}
|
{{template "like-example" .}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user