diff options
Diffstat (limited to 'templates/admin/navbar.tmpl')
-rw-r--r-- | templates/admin/navbar.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 953076d808..c656d0619b 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -12,9 +12,11 @@ <a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubUrl}}/admin/repos"> {{.i18n.Tr "admin.repositories"}} </a> - <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/hooks"> - {{.i18n.Tr "admin.hooks"}} - </a> + {{if not DisableWebhooks}} + <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/hooks"> + {{.i18n.Tr "admin.hooks"}} + </a> + {{end}} <a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubUrl}}/admin/auths"> {{.i18n.Tr "admin.authentication"}} </a> |