diff options
author | friendica <info@friendica.com> | 2014-03-23 16:20:44 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-23 16:20:44 -0700 |
commit | 34eb79e6ba2255113eca6d30ae6c65b28d63abfa (patch) | |
tree | 305d842c180447803a838333dd9337fdc647a035 /view | |
parent | ba6765a40301a549f2fcbe5ddcf0dffd53e205fc (diff) | |
download | volse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.tar.gz volse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.tar.bz2 volse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.zip |
provide 'style' option to archive widget to choose between 'select' and 'list' format
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/css/style.css | 2 | ||||
-rwxr-xr-x | view/tpl/posted_date_widget.tpl | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index ecb9352ec..6a4f836b1 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2114,7 +2114,7 @@ img.mail-list-sender-photo { list-style-type: none; } -#sidebar-group-list ul { +#sidebar-group-list ul, #posted-date-selector { list-style-type: none; } diff --git a/view/tpl/posted_date_widget.tpl b/view/tpl/posted_date_widget.tpl index 6720d3628..1a8323926 100755 --- a/view/tpl/posted_date_widget.tpl +++ b/view/tpl/posted_date_widget.tpl @@ -1,9 +1,17 @@ <div id="datebrowse-sidebar" class="widget"> <h3>{{$title}}</h3> <script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script> +{{if $style == 'list'}} +<ul id="posted-date-selector"> +{{foreach $dates as $d}} +<li class="posted-date-li"><a href="#" onclick="dateSubmit('{{$url}}?f=&dend={{$d.1}}&dbegin={{$d.2}}'); return false;">{{$d.0}}</a></li> +{{/foreach}} +</ul> +{{else}} <select id="posted-date-selector" name="posted-date-select" onchange="dateSubmit($(this).val());" size="{{$size}}"> {{foreach $dates as $d}} -<option value="{{$url}}?dend={{$d.1}}&dbegin={{$d.2}}" >{{$d.0}}</option> +<option value="{{$url}}?f=&dend={{$d.1}}&dbegin={{$d.2}}" >{{$d.0}}</option> {{/foreach}} </select> +{{/if}} </div> |