aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-04 15:33:53 +0100
committerMax Kostikov <max@kostikov.co>2019-12-04 15:33:53 +0100
commit9a70c3c2759ee479f598dceef1ad95b4675db7f0 (patch)
treeb2ae7e4a496d0e2e929467d00f47af81a139d6c0 /view/tpl
parentd9c39d0c410d4aced1c9bdef4b431b039328b92c (diff)
downloadvolse-hubzilla-9a70c3c2759ee479f598dceef1ad95b4675db7f0.tar.gz
volse-hubzilla-9a70c3c2759ee479f598dceef1ad95b4675db7f0.tar.bz2
volse-hubzilla-9a70c3c2759ee479f598dceef1ad95b4675db7f0.zip
Show unpin button for pinned post for owner only
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/pinned_item.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl
index 17e82b410..a24c4ae44 100644
--- a/view/tpl/pinned_item.tpl
+++ b/view/tpl/pinned_item.tpl
@@ -137,7 +137,9 @@
{{if $plink}}
<a class="dropdown-item" href="{{$plink.href}}" title="{{$plink.title}}" class="u-url"><i class="generic-icons-nav fa fa-fw fa-external-link"></i>{{$plink.title}}</a>
{{/if}}
- <a class="dropdown-item dropdown-item-pinnable" href="#" onclick="dopin({{$id}}); return false;"><i class="generic-icons-nav fa fa-fw fa-thumb-tack"></i>{{$pinme}}</a>
+ {{if $pinme}}
+ <a class="dropdown-item dropdown-item-pinnable" href="#" onclick="dopin({{$id}}); return false;"><i class="generic-icons-nav fa fa-fw fa-thumb-tack"></i>{{$pinme}}</a>
+ {{/if}}
{{if $hide}}
<a class="dropdown-item" href="#" onclick="dopinhide({{$id}}); return false;" class="u-url"><i class="generic-icons-nav fa fa-fw fa-remove"></i>{{$hide}}</a>
{{/if}}