forked from forgejo/forgejo
Fix incorrect release count (#25879)
Release count is not correct: https://try.gitea.io/yp05327/testrepo/tags  https://try.gitea.io/yp05327/testrepo/releases  https://try.gitea.io/yp05327/testrepo/releases/tag/testtag  We already have correct release count, no need to calculate it again.c5e187c389/modules/context/repo.go (L547)
Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
1c8073b483
commit
dc679fc9fa
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
<div class="gt-df">
|
||||
<div class="gt-f1 gt-df gt-ac">
|
||||
<h2 class="ui compact small menu header small-menu-items">
|
||||
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">{{.locale.PrettyNumber .ReleasesNum}} {{.locale.TrN .ReleasesNum "repo.release" "repo.releases"}}</a>
|
||||
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">{{.locale.PrettyNumber .NumReleases}} {{.locale.TrN .NumReleases "repo.release" "repo.releases"}}</a>
|
||||
{{if $canReadCode}}
|
||||
<a class="{{if .PageIsTagList}}active {{end}}item" href="{{.RepoLink}}/tags">{{.locale.PrettyNumber .NumTags}} {{.locale.TrN .NumTags "repo.tag" "repo.tags"}}</a>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue