if there are not categories/filters dont show dropdowns

main
Barış Soner Uşaklı 8 years ago committed by Julian Lam
parent 43be71a1cb
commit 205f61cb86

@ -14,7 +14,7 @@
<!-- ENDIF loggedIn --> <!-- ENDIF loggedIn -->
</div> </div>
<div class="btn-group pull-right category-dropdown-container"> <div class="btn-group pull-right category-dropdown-container <!-- IF !categories.length -->hidden<!-- ENDIF !categories.length -->">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<!-- IF selectedCategory --><!-- IF selectedCategory.icon --><span class="fa-stack"><i style="color: {selectedCategory.bgColor};" class="fa fa-circle fa-stack-2x"></i><i class="fa fa-fw fa-stack-1x {selectedCategory.icon}" style="color: {selectedCategory.color};"></i></span><!-- ENDIF selectedCategory.icon --> {selectedCategory.name}<!-- ELSE --> <!-- IF selectedCategory --><!-- IF selectedCategory.icon --><span class="fa-stack"><i style="color: {selectedCategory.bgColor};" class="fa fa-circle fa-stack-2x"></i><i class="fa fa-fw fa-stack-1x {selectedCategory.icon}" style="color: {selectedCategory.color};"></i></span><!-- ENDIF selectedCategory.icon --> {selectedCategory.name}<!-- ELSE -->
[[unread:all_categories]]<!-- ENDIF selectedCategory --> <span class="caret"></span> [[unread:all_categories]]<!-- ENDIF selectedCategory --> <span class="caret"></span>
@ -31,7 +31,7 @@
</ul> </ul>
</div> </div>
<div class="btn-group pull-right"> <div class="btn-group pull-right <!-- IF !filters.length -->hidden<!-- ENDIF !filters.length -->">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{selectedFilter.name} <span class="caret"></span> {selectedFilter.name} <span class="caret"></span>
</button> </button>

Loading…
Cancel
Save