diff options
-rw-r--r-- | templates/repo/header.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"> {{.i18n.Tr "repo.commits"}} - <span class="ui small label">{{.CommitsCount}}</span> + <span class="ui small label">{{or .CommitsCount "0"}}</span> </a> <a class="{{if .PageIsBranches}}active{{end}} item" href="{{.RepoLink}}/branches/"> {{.i18n.Tr "repo.branches"}} - <span class="ui small label">{{.BranchesCount}}</span> + <span class="ui small label">{{or .BranchesCount "0"}}</span> </a> {{end}} |