feat: add selected class to topic filter

main
Barış Soner Uşaklı 5 years ago
parent b6b70fae92
commit af9f20a0bf

@ -22,7 +22,7 @@
</button>
<ul class="dropdown-menu" role="menu">
{{{each filters}}}
<li role="presentation" class="category">
<li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
<a role="menu-item" href="{config.relative_path}/{filters.url}"><i class="fa fa-fw <!-- IF filters.selected -->fa-check<!-- ENDIF filters.selected -->"></i>{filters.name}</a>
</li>
{{{end}}}

@ -25,7 +25,7 @@
</button>
<ul class="dropdown-menu" role="menu">
{{{each filters}}}
<li role="presentation" class="category">
<li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
<a role="menu-item" href="{config.relative_path}/{filters.url}"><i class="fa fa-fw <!-- IF filters.selected -->fa-check<!-- ENDIF filters.selected -->"></i>{filters.name}</a>
</li>
{{{end}}}

@ -42,7 +42,7 @@
</button>
<ul class="dropdown-menu" role="menu">
{{{each filters}}}
<li role="presentation" class="category">
<li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
<a role="menu-item" href="{config.relative_path}/{filters.url}"><i class="fa fa-fw <!-- IF filters.selected -->fa-check<!-- ENDIF filters.selected -->"></i>{filters.name}</a>
</li>
{{{end}}}

Loading…
Cancel
Save