aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wikilist.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-15 12:52:48 +1100
committerGitHub <noreply@github.com>2016-11-15 12:52:48 +1100
commit537510f0810976c2b8cd3861d914645a4e2c2b06 (patch)
tree22bb746792ce516befa9fd29ed932735d5bdf1c1 /view/tpl/wikilist.tpl
parentdc411ca889e4fbc1201d443674f73bc523b57dc9 (diff)
parent1985502894651b263cca769509220b9e85827b4a (diff)
downloadvolse-hubzilla-537510f0810976c2b8cd3861d914645a4e2c2b06.tar.gz
volse-hubzilla-537510f0810976c2b8cd3861d914645a4e2c2b06.tar.bz2
volse-hubzilla-537510f0810976c2b8cd3861d914645a4e2c2b06.zip
Merge pull request #585 from anaqreon/wiki
Wiki
Diffstat (limited to 'view/tpl/wikilist.tpl')
-rw-r--r--view/tpl/wikilist.tpl18
1 files changed, 10 insertions, 8 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl
index 0828d78fa..42452eb12 100644
--- a/view/tpl/wikilist.tpl
+++ b/view/tpl/wikilist.tpl
@@ -1,14 +1,16 @@
<div id="wiki_list" class="widget">
- <h3>{{$header}}</h3>
+
+ <h3>{{$header}}
+ <i id="new-wiki-button" class="pull-right generic-icons fakelink fa fa-plus" title="New wiki" onclick="wiki_show_new_wiki_form();"></i>
+ </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>
- {{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>
+ <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 id="edit-wiki-button" class="pull-right generic-icons fakelink fa fa-edit" onclick="wiki_show_edit_wiki_form('{{$wiki.title}}', '{{$wiki.resource_id}}');" title="Edit {{$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>
{{/foreach}}
</div>
</div>