From 4019a6d4b2b6f702bbdc99d5ed478e01ba243d28 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 7 Apr 2023 22:32:42 -0400 Subject: [PATCH] Discolor pull request tab labels (#23950) (#23987) Backport #23950 by @silverwind https://github.com/go-gitea/gitea/pull/22687 has discolored the repo tab labels. This does the same for PR tabs for consistency. Value `0` is still rendered like before. Before: Screenshot 2023-04-06 at 19 35 24 After: Screenshot 2023-04-06 at 19 35 07 Screenshot 2023-04-06 at 19 38 37 Co-authored-by: silverwind --- templates/repo/pulls/tab_menu.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index f6554c676..5e4390937 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -2,16 +2,16 @@ {{svg "octicon-comment-discussion"}} {{$.locale.Tr "repo.pulls.tab_conversation"}} - {{.Issue.NumComments}} + {{.Issue.NumComments}} {{svg "octicon-git-commit"}} {{$.locale.Tr "repo.pulls.tab_commits"}} - {{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}} + {{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}} {{svg "octicon-diff"}} {{$.locale.Tr "repo.pulls.tab_files"}} - {{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}} + {{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}}