diff options
author | zeripath <art27@cantab.net> | 2021-03-12 16:07:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 00:07:23 +0800 |
commit | ccfb205ad126ac6fa3490e43a8075947e05a731a (patch) | |
tree | 9c363e6174cfb3ab2e454f14c80d3984c341ad2a /templates/repo/issue | |
parent | 855a4f476e848dcb60422d299f003e69adbdc79a (diff) | |
download | gitea-ccfb205ad126ac6fa3490e43a8075947e05a731a.tar.gz gitea-ccfb205ad126ac6fa3490e43a8075947e05a731a.zip |
Fix excluding more than two labels on issues list (#14962)
* Fix excluding more than two labels on issues list
Fix #14840
Signed-off-by: Andrew Thornton <art27@cantab.net>
* refactor DRY
* fix multiple-label filter on milestone issuelist
* Apply suggestions from code review
Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com>
* Update web_src/js/index.js
Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/milestone_issues.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index c2c81682ff..4f4a91b211 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -54,7 +54,7 @@ <span class="info">{{.i18n.Tr "repo.issues.filter_label_exclude" | Safe}}</span> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_label_no_select"}}</a> {{range .Labels}} - <a class="item label-filter-item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.ID}}&assignee={{$.AssigneeID}}" data-label-id="{{.ID}}">{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if contain $.SelLabelIDs .ID}}{{svg "octicon-check"}}{{end}}<span class="label color" style="background-color: {{.Color}}"></span> {{.Name | RenderEmoji}}</a> + <a class="item label-filter-item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.QueryString}}&assignee={{$.AssigneeID}}" data-label-id="{{.ID}}">{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if contain $.SelLabelIDs .ID}}{{svg "octicon-check"}}{{end}}<span class="label color" style="background-color: {{.Color}}"></span> {{.Name | RenderEmoji}}</a> {{end}} </div> </div> |