Explicit Photo handling on Notifications page

face-detect
Noah Petherbridge 2023-12-26 16:31:37 -08:00
parent be835ca8f9
commit d7dd5aae6c
1 changed files with 14 additions and 2 deletions

View File

@ -419,11 +419,11 @@
{{else if eq .Type "new_photo"}}
<span class="icon">
{{if and $Body.Photo (eq $Body.Photo.Visibility "private")}}
<i class="fa fa-eye has-text-private"></i>
<i class="fa fa-eye {{if $Body.Photo.Explicit}}has-text-danger{{else}}has-text-private{{end}}"></i>
{{else if and $Body.Photo (eq $Body.Photo.Visibility "circle")}}
<img src="/static/img/circle-16.png">
{{else}}
<i class="fa fa-image has-text-link"></i>
<i class="fa fa-image {{if $Body.Photo.Explicit}}has-text-danger{{else}}has-text-link{{end}}"></i>
{{end}}
</span>
<span>
@ -485,6 +485,18 @@
{{else}}
<em>{{or $Body.Photo.Caption "No caption."}}</em>
{{end}}
<!-- Admin action: mark this pic explicit? -->
{{if and ($Root.CurrentUser.IsAdmin) (not $Body.Photo.Explicit)}}
<div class="mt-2">
<a href="/admin/photo/mark-explicit?photo_id={{$Body.Photo.ID}}&next={{$Root.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}}
</div>
{{end}}