diff options
author | 6543 <6543@obermui.de> | 2020-04-06 20:42:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 19:42:30 +0100 |
commit | ad31d6b5e8856b22ddad45477be9d078a869a953 (patch) | |
tree | 63a8e832f97b50aee3bef9321fa5f238b0c0e8d4 /templates/repo/header.tmpl | |
parent | ef89e75d0eb232e98ca7a7ef278b8681c7f4fe50 (diff) | |
download | gitea-ad31d6b5e8856b22ddad45477be9d078a869a953.tar.gz gitea-ad31d6b5e8856b22ddad45477be9d078a869a953.zip |
Fix release counter on API repository info (#10968)
Use the same mechanism as the webpage for calculating the release count
Fix #10946
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 1fc298bcba..f4edc74396 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -117,7 +117,7 @@ {{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo) }} <a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> - {{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .Repository.NumReleases}}gray{{else}}blue{{end}} small label">{{.Repository.NumReleases}}</span> + {{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .NumReleases}}gray{{else}}blue{{end}} small label">{{.NumReleases}}</span> </a> {{end}} |