diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 59fbad52..49b6fcd0 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -306,7 +306,7 @@
{{ i "git-branch" "w-4 h-4" }} Branches - {{ scaleFmt (len .Branches) }} + {{ scaleFmt .TotalBranches }}
{{ range .BranchesTrunc }} @@ -345,7 +345,7 @@
diff --git a/appview/repo/index.go b/appview/repo/index.go index 03dd23b5..8abb4350 100644 --- a/appview/repo/index.go +++ b/appview/repo/index.go @@ -308,8 +308,9 @@ func (rp *Repo) buildIndexResponse(ctx context.Context, repo *models.Repo, ref s // if ref is still empty, this means the default branch is not set if ref == "" { return &types.RepoIndexResponse{ - IsEmpty: true, - Branches: branchesResp.Branches, + IsEmpty: true, + Branches: branchesResp.Branches, + TotalBranches: branchesResp.Total, }, nil } @@ -412,7 +413,9 @@ func (rp *Repo) buildIndexResponse(ctx context.Context, repo *models.Repo, ref s Commits: logResp.Commits, Files: files, Branches: branchesResp.Branches, + TotalBranches: branchesResp.Total, Tags: tagsResp.Tags, + TotalTags: tagsResp.Total, TotalCommits: logResp.Total, }