aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/navbar.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/settings/navbar.tmpl')
-rw-r--r--templates/repo/settings/navbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl
index e46273aff0..3e127ccbb3 100644
--- a/templates/repo/settings/navbar.tmpl
+++ b/templates/repo/settings/navbar.tmpl
@@ -12,7 +12,7 @@
{{ctx.Locale.Tr "repo.settings.hooks"}}
</a>
{{end}}
- {{if .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeCode}}
+ {{if .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeCode}}
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
{{ctx.Locale.Tr "repo.settings.branches"}}
</a>