aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-08-28 17:06:10 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-08-28 22:06:10 +0800
commitedb95faba2534d9bf53068b69db99ffa7b71938f (patch)
tree56a9ffb83c1bffe1da1d7a307363d9500ac08d13 /templates
parentd23b36c598cd30f2da7446ef20154f6172ae8795 (diff)
downloadgitea-edb95faba2534d9bf53068b69db99ffa7b71938f.tar.gz
gitea-edb95faba2534d9bf53068b69db99ffa7b71938f.zip
Fix releases to be counted from database not tags (#2389)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 7c91000488..8d457e7dc4 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -81,7 +81,7 @@
{{if and (.Repository.UnitEnabled $.UnitTypeReleases) (not .IsBareRepo) }}
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
- <i class="octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .Repository.NumTags}}gray{{else}}blue{{end}} small label">{{.Repository.NumTags}}</span>
+ <i class="octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .Repository.NumReleases}}gray{{else}}blue{{end}} small label">{{.Repository.NumReleases}}</span>
</a>
{{end}}