aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wikilist.tpl
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-29 20:39:19 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-29 20:39:19 -0400
commit00d32f6b947d10b836cf1a4d59dbff3413517fd5 (patch)
tree9f5c31a3a91e65ddcd6fb6049c14c6717f12019c /view/tpl/wikilist.tpl
parentfad27fc1e791dbe77321d4b45eb6293f8ff97310 (diff)
downloadvolse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.tar.gz
volse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.tar.bz2
volse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.zip
Only show wiki delete control if channel owner
Diffstat (limited to 'view/tpl/wikilist.tpl')
-rw-r--r--view/tpl/wikilist.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl
index d1652dcf4..91ac1a7b3 100644
--- a/view/tpl/wikilist.tpl
+++ b/view/tpl/wikilist.tpl
@@ -8,8 +8,10 @@
</a>
<ul class="dropdown-menu pull-right">
<li><a href="/wiki/{{$channel}}/{{$wiki.title}}/Home.md" title="View {{$wiki.title}}">View</a></li>
+ {{if $showControls}}
<li class="divider"></li>
<li><a href="#" onclick="wiki_delete_wiki('{{$wiki.title}}','{{$wiki.resource_id}}'); return false;" title="Delete {{$wiki.title}}">Delete wiki</a></li>
+ {{/if}}
</ul>
</li>
{{/foreach}}