From ca61038c9f7fb4627d380906ccd12bc64227fb5a Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 23 Jan 2020 17:24:06 -0500 Subject: templates/repo/header: Default to zero commits and branches --- templates/repo/header.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 49a2d28..2e00023 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -93,13 +93,13 @@ {{.i18n.Tr "repo.commits"}} - {{.CommitsCount}} + {{or .CommitsCount "0"}} {{.i18n.Tr "repo.branches"}} - {{.BranchesCount}} + {{or .BranchesCount "0"}} {{end}} -- cgit v1.2.3