diff options
author | Mario <mario@mariovavti.com> | 2017-09-19 18:59:06 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2017-09-19 18:59:06 +0200 |
commit | 4500faf463e7fd6fcf9948666421c941a1292df9 (patch) | |
tree | 6ce7fcce4ead9110c67eecd08be652b07350ccb5 /view/tpl | |
parent | 66fb0fdcd77f46c614f8149e71ca0d4fb1757d0a (diff) | |
download | volse-hubzilla-4500faf463e7fd6fcf9948666421c941a1292df9.tar.gz volse-hubzilla-4500faf463e7fd6fcf9948666421c941a1292df9.tar.bz2 volse-hubzilla-4500faf463e7fd6fcf9948666421c941a1292df9.zip |
fix various wikipage widget issues (sort pages by name, respect locked mime type setting, move create tool back to the bottom)
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/wiki_page_list.tpl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl index bf5f6697d..a7e6ebdaf 100644 --- a/view/tpl/wiki_page_list.tpl +++ b/view/tpl/wiki_page_list.tpl @@ -3,6 +3,16 @@ {{/if}} <h3>{{$header}}</h3> <ul class="nav nav-pills flex-column"> + {{if $pages}} + {{foreach $pages as $page}} + <li class="nav-item nav-item-hack" id="{{$page.link_id}}"> + {{if $page.resource_id && $candel}} + <i class="nav-link widget-nav-pills-icons fa fa-trash-o drop-icons" onclick="wiki_delete_page('{{$page.title}}', '{{$page.title}}', '{{$page.resource_id}}', '{{$page.link_id}}')"></i> + {{/if}} + <a class="nav-link" href="/wiki/{{$channel_address}}/{{$wikiname}}/{{$page.url}}">{{$page.title}}</a> + </li> + {{/foreach}} + {{/if}} {{if $canadd}} <li class="nav-item"><a class="nav-link" href="#" onclick="wiki_show_new_page_form(); return false;"><i class="fa fa-plus-circle"></i> {{$addnew}}</a></li> {{/if}} @@ -11,7 +21,7 @@ <form id="new-page-form" action="wiki/{{$channel_address}}/create/page" method="post" > <input type="hidden" name="resource_id" value="{{$resource_id}}"> {{if $typelock}} - <input type="hidden" name="mimetype" value="{{$lockedtype}}"> + <input id="id_mimetype" type="hidden" name="mimetype" value="{{$lockedtype}}"> {{else}} {{$mimetype}} {{/if}} @@ -20,16 +30,6 @@ </form> </div> {{/if}} - {{if $pages}} - {{foreach $pages as $page}} - <li class="nav-item nav-item-hack" id="{{$page.link_id}}"> - {{if $page.resource_id && $candel}} - <i class="nav-link widget-nav-pills-icons fa fa-trash-o drop-icons" onclick="wiki_delete_page('{{$page.title}}', '{{$page.title}}', '{{$page.resource_id}}', '{{$page.link_id}}')"></i> - {{/if}} - <a class="nav-link" href="/wiki/{{$channel_address}}/{{$wikiname}}/{{$page.url}}">{{$page.title}}</a> - </li> - {{/foreach}} - {{/if}} </ul> {{if ! $refresh}} </div> |