aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wikilist.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-13 07:28:40 +1100
committerGitHub <noreply@github.com>2016-11-13 07:28:40 +1100
commit69509f2a2aee10492a67c1de54c5e6682ecba42d (patch)
tree4d9ac29648f2b6f57e0a8b1445232dee8748e880 /view/tpl/wikilist.tpl
parentebef7d634822d78c39319685a614b72762e123a2 (diff)
parentda5b9d5c743cfb51dfbea7a79feba463b4331aa5 (diff)
downloadvolse-hubzilla-69509f2a2aee10492a67c1de54c5e6682ecba42d.tar.gz
volse-hubzilla-69509f2a2aee10492a67c1de54c5e6682ecba42d.tar.bz2
volse-hubzilla-69509f2a2aee10492a67c1de54c5e6682ecba42d.zip
Merge pull request #582 from anaqreon/wiki
Revised wiki controls
Diffstat (limited to 'view/tpl/wikilist.tpl')
-rw-r--r--view/tpl/wikilist.tpl22
1 files changed, 7 insertions, 15 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl
index 6b37be4c5..7cf04d35e 100644
--- a/view/tpl/wikilist.tpl
+++ b/view/tpl/wikilist.tpl
@@ -1,21 +1,13 @@
<div id="wiki_list" class="widget">
<h3>{{$header}}</h3>
- <ul class="nav nav-pills nav-stacked">
+ <div>
{{foreach $wikis as $wiki}}
- <li class="dropdown" id="wiki-{{$wiki.resource_id}}">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <b>{{$wiki.title}}</b><b class="fa fa-caret-down pull-right"></b>
- </a>
- <ul class="dropdown-menu pull-right">
- <li><a href="/wiki/{{$channel}}/{{$wiki.urlName}}/Home" title="View {{$wiki.title}}">View</a></li>
- <li><a href="#" onclick="wiki_download_wiki('{{$wiki.resource_id}}'); return false;" title="Download {{$wiki.title}}">Download</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>
+ <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>
{{/foreach}}
- </ul>
+ </div>
</div>