File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 12
12
{{ctx.Locale.Tr "repo.settings.hooks"}}
13
13
</a>
14
14
{{end}}
15
- {{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
16
- <a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
17
- {{ctx.Locale.Tr "repo.settings.branches"}}
18
- </a>
15
+ {{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
16
+ {{if not .Repository.IsEmpty}}
17
+ <a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
18
+ {{ctx.Locale.Tr "repo.settings.branches"}}
19
+ </a>
20
+ {{end}}
19
21
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
20
22
{{ctx.Locale.Tr "repo.settings.tags"}}
21
23
</a>
You can’t perform that action at this time.
0 commit comments