diff options
author | hubzilla <git@macgirvin.com> | 2016-06-10 20:03:08 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 20:03:08 +1000 |
commit | beb55235c68feadabe3b647ebe14ae2cab94a2f8 (patch) | |
tree | 8a6d552f8658dd64e361e462b78734138624955b /view/tpl/wikilist.tpl | |
parent | cf415a4312f3a926c3b080fb49042752441f23b4 (diff) | |
parent | 7a242f829fac2b434726c2bbdca5dbf658404c76 (diff) | |
download | volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.gz volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.bz2 volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.zip |
Merge pull request #410 from anaqreon/wiki
Wiki module: first iteration
Diffstat (limited to 'view/tpl/wikilist.tpl')
-rw-r--r-- | view/tpl/wikilist.tpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl new file mode 100644 index 000000000..be353ca5e --- /dev/null +++ b/view/tpl/wikilist.tpl @@ -0,0 +1,20 @@ +<div id="wiki_list" class="widget"> + <h3>{{$header}}</h3> + <ul class="nav nav-pills nav-stacked"> + {{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> + {{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> + {{/foreach}} + </ul> +</div> + |