1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-02 07:38:35 +00:00

Fix tags header and pretty format numbers (#25624)

This caused by #23465
This commit is contained in:
Lunny Xiao
2023-07-05 12:11:42 +08:00
committed by GitHub
parent e7495735d5
commit 90b3b3dbf8
4 changed files with 6 additions and 5 deletions

View File

@@ -207,7 +207,7 @@
{{end}}
{{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo)}}
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">
<a class="{{if or .PageIsReleaseList .PageIsTagList}}active {{end}}item" href="{{.RepoLink}}/releases">
{{svg "octicon-tag"}} {{.locale.Tr "repo.releases"}}
{{if .NumReleases}}
<span class="ui small label">{{CountFmt .NumReleases}}</span>