1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-27 12:48:37 +00:00

Show repository size in repo home page and settings (#8940)

* feat: display repository size on repo home and settings

* refactor: move repo size up in setting page
This commit is contained in:
Antoine GIRARD
2019-11-13 01:45:19 +01:00
committed by zeripath
parent 253fdfb7fa
commit cda8de2004
3 changed files with 8 additions and 0 deletions

View File

@@ -9,6 +9,9 @@
<div class="item{{if .PageIsBranches}} active{{end}}">
<a class="ui" href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BranchesCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .BranchesCount "repo.branch" "repo.branches") }}</a>
</div>
<div class="item">
<a class="ui" href="#"><i class="octicon octicon-database"></i> <b>{{SizeFmt .Repository.Size}}</b></a>
</div>
{{end}}
</div>
</div>