aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-16 09:55:29 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-16 09:55:29 +0200
commitcb3fb0049f64a92668bc94746dc55cc905683699 (patch)
treef3d8a5f09ba9c5b36c9bc8e0176b3d11cba732cf /view
parenteef1fcbb07a689725a4812ca0b3eb302424268b9 (diff)
downloadvolse-hubzilla-cb3fb0049f64a92668bc94746dc55cc905683699.tar.gz
volse-hubzilla-cb3fb0049f64a92668bc94746dc55cc905683699.tar.bz2
volse-hubzilla-cb3fb0049f64a92668bc94746dc55cc905683699.zip
do not show edit pencil if not allowed to edit
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wikilist.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl
index c706ec27d..dfd7f553d 100644
--- a/view/tpl/wikilist.tpl
+++ b/view/tpl/wikilist.tpl
@@ -30,7 +30,9 @@
<th width="96%">{{$name}}</th>
<th width="1%">{{$type}}</th>
<th width="1%" class="wikis-index-tool"></th>
+ {{if $owner}}
<th width="1%" class="wikis-index-tool"></th>
+ {{/if}}
<th width="1%" class="wikis-index-tool"></th>
{{if $owner}}
<th width="1%"></th>
@@ -40,7 +42,9 @@
<tr class="wikis-index-row">
<td><a href="/wiki/{{$channel}}/{{$wiki.urlName}}/Home" title="{{$view}}"{{if $wiki.active}} class="active"{{/if}}>{{$wiki.title}}</a></td>
<td>{{if $wiki.typelock}}{{$wiki.mimeType}}{{else}}{{$unlocked}}{{/if}}</td>
+ {{if $owner}}
<td class="wikis-index-tool"><i class="fa fa-pencil" onclick="openCloseTR('wikis-index-edit-{{$wiki.id}}')"></i></td>
+ {{/if}}
<td class="wikis-index-tool dropdown">
{{if $wiki.lockstate == 'lock'}}
<i class="fa fa-lock lockview" data-toggle="dropdown" onclick="lockview('item',{{$wiki.id}});"></i>