diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-24 06:15:42 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-24 06:15:42 -0400 |
commit | e00b8a70829213a4333a53a097c2c498d529f5d6 (patch) | |
tree | 74bd9a90a24671287106b85050480f9cc45fe79c /view/tpl/wikilist.tpl | |
parent | a36bef7979aecd72751d319f85b7037991979e35 (diff) | |
download | volse-hubzilla-e00b8a70829213a4333a53a097c2c498d529f5d6.tar.gz volse-hubzilla-e00b8a70829213a4333a53a097c2c498d529f5d6.tar.bz2 volse-hubzilla-e00b8a70829213a4333a53a097c2c498d529f5d6.zip |
Delete wiki (in progress)
Diffstat (limited to 'view/tpl/wikilist.tpl')
-rw-r--r-- | view/tpl/wikilist.tpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index d5f2d0c04..f3cea489d 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -2,7 +2,16 @@ <h3>{{$header}}</h3> <ul class="nav nav-pills nav-stacked"> {{foreach $wikis as $wiki}} - <li><a href="/wiki/{{$channel}}/{{$wiki.title}}">{{$wiki.title}}</a></li> + <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.title}}" title="View {{$wiki.title}}">View</a></li> + <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> + </ul> + </li> {{/foreach}} </ul> </div> |