Skip to content

Commit 3f6a600

Browse files
lunnylafriks
authored andcommitted
fix changed method name on sub menu
1 parent d5b6e23 commit 3f6a600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/sub_menu.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="ui segment sub-menu">
22
<div class="ui two horizontal center link list">
3-
{{if and (.Repository.EnableUnit $.UnitTypeCode) (not .IsBareRepo)}}
3+
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
44
<div class="item{{if .PageIsCommits}} active{{end}}">
55
<a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
66
</div>
77
{{end}}
8-
{{if and (.Repository.EnableUnit $.UnitTypeCode) (not .IsBareRepo) }}
8+
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
99
<div class="item{{if .PageIsBranches}} active{{end}}">
1010
<a href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BrancheCount}}</b> {{.i18n.Tr "repo.branches"}}</a>
1111
</div>

0 commit comments

Comments
 (0)