aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-24 19:41:58 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-24 19:41:58 +0100
commit90ab050493184615da4b5846ca92f6dbe948e3b5 (patch)
tree849617f2c6497ed647699c781088717ef24ebe24 /view/tpl
parent28e0911f295f49af8f559434d119286ef7ca9d83 (diff)
downloadvolse-hubzilla-90ab050493184615da4b5846ca92f6dbe948e3b5.tar.gz
volse-hubzilla-90ab050493184615da4b5846ca92f6dbe948e3b5.tar.bz2
volse-hubzilla-90ab050493184615da4b5846ca92f6dbe948e3b5.zip
fix active state
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/fileas_widget.tpl4
-rw-r--r--view/tpl/saved_searches.tpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/fileas_widget.tpl b/view/tpl/fileas_widget.tpl
index 1754a794b..a6a69b89c 100755
--- a/view/tpl/fileas_widget.tpl
+++ b/view/tpl/fileas_widget.tpl
@@ -3,9 +3,9 @@
<div id="nets-desc">{{$desc}}</div>
<ul class="nav nav-pills flex-column">
- <li class="nav-item"><a class="nav-link" href="{{$base}}"{{if $sel_all}} class="fileas-selected"{{/if}}>{{$all}}</a></li>
+ <li class="nav-item"><a class="nav-link{{if $sel_all}} active{{/if}}" href="{{$base}}">{{$all}}</a></li>
{{foreach $terms as $term}}
- <li class="nav-item"><a class="nav-link" href="{{$base}}?f=&file={{$term.name}}"{{if $term.selected}} class="fileas-selected"{{/if}}>{{$term.name}}</a></li>
+ <li class="nav-item"><a class="nav-link{{if $term.selected}} active{{/if}}" href="{{$base}}?f=&file={{$term.name}}">{{$term.name}}</a></li>
{{/foreach}}
</ul>
diff --git a/view/tpl/saved_searches.tpl b/view/tpl/saved_searches.tpl
index b62404fcc..ff2d044ef 100644
--- a/view/tpl/saved_searches.tpl
+++ b/view/tpl/saved_searches.tpl
@@ -5,7 +5,7 @@
{{foreach $saved as $search}}
<li class="nav-item nav-item-hack" id="search-term-{{$search.id}}">
<a class="nav-link widget-nav-pills-icons" title="{{$search.delete}}" onclick="return confirmDelete();" id="drop-saved-search-term-{{$search.id}}" href="{{$search.dellink}}"><i id="dropfa-floppy-od-search-term-{{$search.id}}" class="fa fa-trash-o drop-icons" ></i></a>
- <a id="saved-search-term-{{$search.id}}" class="nav-link{{if $search.selected}} search-selected{{/if}}" href="{{$search.srchlink}}">{{$search.displayterm}}</a>
+ <a id="saved-search-term-{{$search.id}}" class="nav-link{{if $search.selected}} active{{/if}}" href="{{$search.srchlink}}">{{$search.displayterm}}</a>
</li>
{{/foreach}}
</ul>