summaryrefslogtreecommitdiffstats
path: root/templates/repo/sub_menu.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-01-18 00:01:04 +0000
committertechknowlogick <hello@techknowlogick.com>2019-01-17 19:01:04 -0500
commit07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8 (patch)
tree87ced90635366b09e7e5f2634acfe2cbec2bc9f6 /templates/repo/sub_menu.tmpl
parent9edc829c1758b436f8f52ebe61479af087940d60 (diff)
downloadgitea-07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8.tar.gz
gitea-07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8.zip
Refactor repo.isBare to repo.isEmpty #5629 (#5714)
* Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
Diffstat (limited to 'templates/repo/sub_menu.tmpl')
-rw-r--r--templates/repo/sub_menu.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl
index 4ca1aa5cbb..54e219def8 100644
--- a/templates/repo/sub_menu.tmpl
+++ b/templates/repo/sub_menu.tmpl
@@ -1,11 +1,11 @@
<div class="ui segment sub-menu">
<div class="ui two horizontal center link list">
- {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsBareRepo)}}
+ {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}
<div class="item{{if .PageIsCommits}} active{{end}}">
<a href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .CommitsCount "repo.commit" "repo.commits") }}</a>
</div>
{{end}}
- {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsBareRepo) }}
+ {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) }}
<div class="item{{if .PageIsBranches}} active{{end}}">
<a 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>