Explicit Photo handling on Notifications page
This commit is contained in:
parent
be835ca8f9
commit
d7dd5aae6c
|
@ -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}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user