diff --git a/templates/repo/issue/filter_list.tmpl b/templates/repo/issue/filter_list.tmpl index bfdf94513e..957b8d10aa 100644 --- a/templates/repo/issue/filter_list.tmpl +++ b/templates/repo/issue/filter_list.tmpl @@ -133,11 +133,13 @@ {{ctx.Locale.Tr "repo.issues.filter_sort.leastcomment"}} {{ctx.Locale.Tr "repo.issues.filter_sort.nearduedate"}} {{ctx.Locale.Tr "repo.issues.filter_sort.farduedate"}} -
-
{{ctx.Locale.Tr "repo.issues.filter_label"}}
- {{range $scope := .ExclusiveLabelScopes}} - {{$sortType := (printf "scope-%s" $scope)}} - {{$scope}} + {{if .ExclusiveLabelScopes}} +
+
{{ctx.Locale.Tr "repo.issues.filter_label"}}
+ {{range $scope := .ExclusiveLabelScopes}} + {{$sortType := (printf "scope-%s" $scope)}} + {{$scope}} + {{end}} {{end}}