Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/{repo,pages}: use total branch & tag count

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
Tangled
date (Jul 21, 2026, 5:47 PM +0300) commit b9b7e63f parent 81105734 change-id lktwytts
+7 -4
+2 -2
appview/pages/templates/repo/index.html
··· 306 306 <div id="branches" class="md:col-span-1 px-2 py-4 border-t border-gray-200 dark:border-gray-700"> 307 307 <a href="/{{ .RepoInfo.FullName }}/branches" class="flex items-center gap-2 pb-2 cursor-pointer font-bold hover:text-gray-600 dark:hover:text-gray-300 hover:no-underline"> 308 308 {{ i "git-branch" "w-4 h-4" }} Branches 309 - <span class="bg-gray-100 dark:bg-gray-700 font-normal rounded py-1/2 px-1 text-sm">{{ scaleFmt (len .Branches) }}</span> 309 + <span class="bg-gray-100 dark:bg-gray-700 font-normal rounded py-1/2 px-1 text-sm">{{ scaleFmt .TotalBranches }}</span> 310 310 </a> 311 311 <div class="flex flex-col gap-1"> 312 312 {{ range .BranchesTrunc }} ··· 345 345 <div class="flex justify-between items-center"> 346 346 <a href="/{{ .RepoInfo.FullName }}/tags" class="flex items-center gap-2 pb-2 cursor-pointer font-bold hover:text-gray-600 dark:hover:text-gray-300 hover:no-underline"> 347 347 {{ i "tags" "w-4 h-4" }} Tags 348 - <span class="bg-gray-100 dark:bg-gray-700 font-normal rounded py-1/2 px-1 text-sm">{{ scaleFmt (len .Tags) }}</span> 348 + <span class="bg-gray-100 dark:bg-gray-700 font-normal rounded py-1/2 px-1 text-sm">{{ scaleFmt .TotalTags }}</span> 349 349 </a> 350 350 </div> 351 351 <div class="flex flex-col gap-1">
+5 -2
appview/repo/index.go
··· 308 308 // if ref is still empty, this means the default branch is not set 309 309 if ref == "" { 310 310 return &types.RepoIndexResponse{ 311 - IsEmpty: true, 312 - Branches: branchesResp.Branches, 311 + IsEmpty: true, 312 + Branches: branchesResp.Branches, 313 + TotalBranches: branchesResp.Total, 313 314 }, nil 314 315 } 315 316 ··· 412 413 Commits: logResp.Commits, 413 414 Files: files, 414 415 Branches: branchesResp.Branches, 416 + TotalBranches: branchesResp.Total, 415 417 Tags: tagsResp.Tags, 418 + TotalTags: tagsResp.Total, 416 419 TotalCommits: logResp.Total, 417 420 } 418 421