diff options
author | Hester Gong <hestergong@gmail.com> | 2023-04-18 19:26:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 19:26:57 +0800 |
commit | 6f3c162f482b395d2635a26777fb8d3c5c43712d (patch) | |
tree | 6e04ee2f51f3b0d7aaa11fcf92bfc33afd1fc549 | |
parent | 2979041bc5beca760d30b965e60f41a3484f55b7 (diff) | |
download | gitea-6f3c162f482b395d2635a26777fb8d3c5c43712d.tar.gz gitea-6f3c162f482b395d2635a26777fb8d3c5c43712d.zip |
Fix wrong scopes of locale.PrettyNumber (#24181)
-rw-r--r-- | templates/repo/projects/list.tmpl | 4 | ||||
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index bbcc20dd7c..8cf5d716f1 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -48,9 +48,9 @@ {{end}} <span class="issue-stats"> {{svg "octicon-issue-opened" 16 "gt-mr-3"}} - {{.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} + {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} {{svg "octicon-check" 16 "gt-mr-3"}} - {{.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} + {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} </span> </div> {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 39eea2fc75..09519ce005 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -104,9 +104,9 @@ {{end}} <span class="issue-stats"> {{svg "octicon-issue-opened" 16 "gt-mr-3"}} - {{.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} + {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} {{svg "octicon-check" 16 "gt-mr-3"}} - {{.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} + {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} {{if .TotalTrackedTime}} {{svg "octicon-clock"}} {{.TotalTrackedTime|Sec2Time}} {{end}} |