From 95b46c873b1e28834a038dfeee9eb2974483d384 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 7 Apr 2023 21:12:45 +0200 Subject: [PATCH] Discolor pull request tab labels (#23950) 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 --- 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 f6554c676d9..5e4390937c5 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}}