aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/sub_menu.tmpl
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-11-13 01:45:19 +0100
committerzeripath <art27@cantab.net>2019-11-13 00:45:19 +0000
commitcda8de2004f81169355fea24762d4f11c9e88560 (patch)
tree643c6920fd4d09e156c2d98e05d6da22030e659c /templates/repo/sub_menu.tmpl
parent253fdfb7fab565172e150cc1ca2ac2701fa744c7 (diff)
downloadgitea-cda8de2004f81169355fea24762d4f11c9e88560.tar.gz
gitea-cda8de2004f81169355fea24762d4f11c9e88560.zip
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
Diffstat (limited to 'templates/repo/sub_menu.tmpl')
-rw-r--r--templates/repo/sub_menu.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl
index dabaa8a1ef..b97fe902eb 100644
--- a/templates/repo/sub_menu.tmpl
+++ b/templates/repo/sub_menu.tmpl
@@ -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>