diff options
author | Thomas Willingham <beardyunixer@beardyunixer.com> | 2014-12-08 13:31:34 +0000 |
---|---|---|
committer | Thomas Willingham <beardyunixer@beardyunixer.com> | 2014-12-08 13:31:34 +0000 |
commit | 99b5bef68eff4bc7b3a36b7626ec6aa1d936e5d9 (patch) | |
tree | 23718e4d20c53c875111362601d4d07d2c17b644 /view/tpl | |
parent | a007426965490fd7251cd917f1219bfc6bdf557b (diff) | |
parent | 647311db3eab87cfe15747765485df782abfa657 (diff) | |
download | volse-hubzilla-99b5bef68eff4bc7b3a36b7626ec6aa1d936e5d9.tar.gz volse-hubzilla-99b5bef68eff4bc7b3a36b7626ec6aa1d936e5d9.tar.bz2 volse-hubzilla-99b5bef68eff4bc7b3a36b7626ec6aa1d936e5d9.zip |
Merge pull request #723 from pafcu/diropts
Directory sorting as a dropdown, forum filter as checkbox, option to sor...
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/dir_sort_links.tpl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/view/tpl/dir_sort_links.tpl b/view/tpl/dir_sort_links.tpl index 2fcf0c13a..d9ecd22c6 100644 --- a/view/tpl/dir_sort_links.tpl +++ b/view/tpl/dir_sort_links.tpl @@ -1,9 +1,10 @@ <div class="widget" id="dir_sort_links"> <h3>{{$header}}</h3> -<ul class="nav nav-pills nav-stacked"> - <li><a href="directory?f=&order=normal">{{$normal}}</a></li> - <li><a href="directory?f=&order=reverse">{{$reverse}}</a></li> - <li><a href="directory?f=&order=date">{{$date}}</a></li> - <li><a href="directory?f=&pubforums=1">{{$pubforums}}</a></li> -</ul> +{{$sort}}: <select onchange='window.location.href="{{$sorturl}}&order="+this.value'> +<option value='normal' {{if $selected_sort == 'normal'}}selected='selected'{{/if}}>{{$normal}}</option> +<option value='reverse' {{if $selected_sort == 'reverse'}}selected='selected'{{/if}}>{{$reverse}}</option> +<option value='date' {{if $selected_sort == 'date'}}selected='selected'{{/if}}>{{$date}}</option> +<option value='reversedate' {{if $selected_sort == 'reversedate'}}selected='selected'{{/if}}>{{$reversedate}}</option> +</select><br /> +<input type='checkbox' {{if $pubforumsonly}}checked='checked'{{/if}} onchange='window.location.href="{{$forumsurl}}&pubforums="+(this.checked ? 1 : 0)'/> {{$pubforums}}<br /> </div> |