From ad31d6b5e8856b22ddad45477be9d078a869a953 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 6 Apr 2020 20:42:30 +0200 Subject: Fix release counter on API repository info (#10968) Use the same mechanism as the webpage for calculating the release count Fix #10946 --- templates/repo/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo/header.tmpl') 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) }} - {{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} {{.Repository.NumReleases}} + {{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} {{.NumReleases}} {{end}} -- cgit v1.2.3