summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorFrancesco Siddi <francesco.siddi@gmail.com>2023-01-31 13:58:34 +0100
committerGitHub <noreply@github.com>2023-01-31 20:58:34 +0800
commitc14d3e80e8f4243768eef8af6a6fa9df9ea5fedd (patch)
tree7258a4bbe94ee0dd48d08de4755347115831e64c /templates
parent36dc11869d0401b796a7a3f74627fec842a4a89a (diff)
downloadgitea-c14d3e80e8f4243768eef8af6a6fa9df9ea5fedd.tar.gz
gitea-c14d3e80e8f4243768eef8af6a6fa9df9ea5fedd.zip
Remove label color from global issue filters (#22660)
The use of ui colors (red, green, etc) should be limited to actionable or dismissable entries. Before this commit, a green/red label was used to display issues count on each repository. This did not add any meaningful information to the list. Removing the label reduces ambiguity and makes the list easier to scan visually. ![label_compare](https://user-images.githubusercontent.com/451841/215360696-a881b765-207d-4ffa-8bec-398f8e5dab1e.jpg) --------- Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/issues.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index 1a0271d8f0..4ff6772a72 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -30,7 +30,7 @@
<div class="ui divider"></div>
<a class="{{if not $.RepoIDs}}ui basic primary button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}">
<span class="text truncate">All</span>
- <div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{CountFmt .TotalIssueCount}}</div>
+ <span class="ui">{{CountFmt .TotalIssueCount}}</span>
</a>
{{range .Repos}}
{{with $Repo := .}}
@@ -49,7 +49,7 @@
{{- end -}}
]&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}" title="{{.FullName}}">
<span class="text truncate">{{$Repo.FullName}}</span>
- <div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{CountFmt (index $.Counts $Repo.ID)}}</div>
+ <span class="ui">{{CountFmt (index $.Counts $Repo.ID)}}</span>
</a>
{{end}}
{{end}}