@ -1,19 +1,17 @@
<h4 class="ui top attached header">
{{ ctx .Locale .Tr "repo.issues.label_count" .NumLabels }}
<div class="ui right">
<div class="ui secondary menu">
<!-- Sort -->
<div class="item ui jump dropdown tw-py-2">
<span class="text">
{{ ctx .Locale .Tr "repo.issues.filter_sort" }}
</span>
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
<div class="menu">
<a class=" {{ if or ( eq .SortType "alphabetically" ) ( not .SortType ) }} active {{ end }} item" href="?sort=alphabetically&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.issues.label.filter_sort.alphabetically" }} </a>
<a class=" {{ if eq .SortType "reversealphabetically" }} active {{ end }} item" href="?sort=reversealphabetically&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.issues.label.filter_sort.reverse_alphabetically" }} </a>
<a class=" {{ if eq .SortType "leastissues" }} active {{ end }} item" href="?sort=leastissues&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.milestones.filter_sort.least_issues" }} </a>
<a class=" {{ if eq .SortType "mostissues" }} active {{ end }} item" href="?sort=mostissues&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.milestones.filter_sort.most_issues" }} </a>
</div>
<!-- Sort -->
<div class="item ui jump dropdown tw-py-2">
<span class="text">
{{ ctx .Locale .Tr "repo.issues.filter_sort" }}
</span>
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
<div class="menu">
<a class=" {{ if or ( eq .SortType "alphabetically" ) ( not .SortType ) }} active {{ end }} item" href="?sort=alphabetically&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.issues.label.filter_sort.alphabetically" }} </a>
<a class=" {{ if eq .SortType "reversealphabetically" }} active {{ end }} item" href="?sort=reversealphabetically&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.issues.label.filter_sort.reverse_alphabetically" }} </a>
<a class=" {{ if eq .SortType "leastissues" }} active {{ end }} item" href="?sort=leastissues&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.milestones.filter_sort.least_issues" }} </a>
<a class=" {{ if eq .SortType "mostissues" }} active {{ end }} item" href="?sort=mostissues&state= {{ $ .State }} "> {{ ctx .Locale .Tr "repo.milestones.filter_sort.most_issues" }} </a>
</div>
</div>
</div> <!-- filter menu -->