diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-11-14 12:01:16 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-11-14 12:01:16 +0100 |
commit | 192df273ccd2b9f527b44622379ebb6142fcc611 (patch) | |
tree | 75ccb3ed24afb691fc7251e4f7e55b35463bbd44 /view | |
parent | cf5c803fe0ebd976031584ee788eb5d762e8a798 (diff) | |
download | volse-hubzilla-192df273ccd2b9f527b44622379ebb6142fcc611.tar.gz volse-hubzilla-192df273ccd2b9f527b44622379ebb6142fcc611.tar.bz2 volse-hubzilla-192df273ccd2b9f527b44622379ebb6142fcc611.zip |
show wiki controls only to owner and whitespace fixes
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/wikilist.tpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index 7cf04d35e..0828d78fa 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -2,11 +2,13 @@ <h3>{{$header}}</h3> <div> {{foreach $wikis as $wiki}} - <div class="form-group" id="wiki-{{$wiki.resource_id}}"> - <a href="/wiki/{{$channel}}/{{$wiki.urlName}}/Home" title="View {{$wiki.title}}"><b>{{$wiki.title}}</b></a> - <i class="pull-right generic-icons fakelink fa fa-trash-o" onclick="wiki_delete_wiki('{{$wiki.title}}','{{$wiki.resource_id}}'); return false;" title="Delete {{$wiki.title}}"></i> - <i class="pull-right generic-icons fakelink fa fa-download" onclick="wiki_download_wiki('{{$wiki.resource_id}}'); return false;" title="Download {{$wiki.title}}"></i> - </div> + <div class="form-group" id="wiki-{{$wiki.resource_id}}"> + <a href="/wiki/{{$channel}}/{{$wiki.urlName}}/Home" title="View {{$wiki.title}}"><b>{{$wiki.title}}</b></a> + {{if $owner}} + <i class="pull-right drop-icons fakelink fa fa-trash-o" onclick="wiki_delete_wiki('{{$wiki.title}}','{{$wiki.resource_id}}'); return false;" title="Delete {{$wiki.title}}"></i> + <i class="pull-right generic-icons fakelink fa fa-download" onclick="wiki_download_wiki('{{$wiki.resource_id}}'); return false;" title="Download {{$wiki.title}}"></i> + {{/if}} + </div> {{/foreach}} </div> </div> |