diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-07-05 12:11:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 04:11:42 +0000 |
commit | 90b3b3dbf83dd88aab00d35535fe913b8d313bfb (patch) | |
tree | 0ef1cfd6c9fdffd7bce42e2c3f4e9e3e0bf752bf /templates/repo/header.tmpl | |
parent | e7495735d5694cc32348bc674f3b9c63c1318e2c (diff) | |
download | gitea-90b3b3dbf83dd88aab00d35535fe913b8d313bfb.tar.gz gitea-90b3b3dbf83dd88aab00d35535fe913b8d313bfb.zip |
Fix tags header and pretty format numbers (#25624)
This caused by #23465
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 18ed738a20..aeb1e6a90e 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -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> |