aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-26 12:50:37 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-26 12:50:37 +0200
commitf851c272fa5cc95f11bfaa0b5399028c6d91247e (patch)
treee345f95a8e4dae0650ebd606722227ab59ef7421 /view/tpl
parent09fde2f83904b3cff477bfedb466c894f06b2f32 (diff)
downloadvolse-hubzilla-f851c272fa5cc95f11bfaa0b5399028c6d91247e.tar.gz
volse-hubzilla-f851c272fa5cc95f11bfaa0b5399028c6d91247e.tar.bz2
volse-hubzilla-f851c272fa5cc95f11bfaa0b5399028c6d91247e.zip
enable dir admins to flag or hide entries
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/direntry.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl
index 5a8e19d12..61dbbcc37 100644
--- a/view/tpl/direntry.tpl
+++ b/view/tpl/direntry.tpl
@@ -1,14 +1,14 @@
<div class="directory-item{{if $entry.safe}} safe{{/if}}" id="directory-item-{{$entry.hash}}" >
<div class="section-subtitle-wrapper clearfix">
<div class="float-end">
- {{if $entry.viewrate}}
- {{if $entry.total_ratings}}<a href="ratings/{{$entry.hash}}" id="dir-rating-{{$entry.hash}}" class="btn btn-outline-secondary btn-sm">{{$entry.total_ratings}}</a>{{/if}}
- {{/if}}
{{if $entry.ignlink}}
<a class="directory-ignore btn btn-warning btn-sm" href="{{$entry.ignlink}}"> {{$entry.ignore_label}}</a>
{{/if}}
+ {{if $entry.censor_2}}
+ <a class="directory-censor btn btn{{$entry.censor_2_class}}-danger btn-sm" href="{{$entry.censor_2}}"> {{$entry.censor_2_label}}</a>
+ {{/if}}
{{if $entry.censor}}
- <a class="directory-censor btn btn-danger btn-sm" href="{{$entry.censor}}"> {{$entry.censor_label}}</a>
+ <a class="directory-censor btn btn{{$entry.censor_class}}-warning btn-sm" href="{{$entry.censor}}"> {{$entry.censor_label}}</a>
{{/if}}
{{if $entry.connect}}
<a class="btn btn-success btn-sm" href="{{$entry.connect}}"><i class="fa fa-plus connect-icon"></i> {{$entry.conn_label}}</a>