diff options
author | Unknwon <u@gogs.io> | 2015-08-25 22:58:34 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-25 22:58:34 +0800 |
commit | f808df5a7b36d134ec92d62e9041a6320f416054 (patch) | |
tree | 9aa7c7758a02e1d8fa87a9af8ada4f3296eca0ae /templates/repo | |
parent | be90ea583a3d65566be8bfbf3440cf0c20557972 (diff) | |
download | gitea-f808df5a7b36d134ec92d62e9041a6320f416054.tar.gz gitea-f808df5a7b36d134ec92d62e9041a6320f416054.zip |
new user dahsboard issues
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/settings/navbar.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index a92f891e6a..fb2e8c24ab 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/templates/repo/settings/navbar.tmpl @@ -10,9 +10,11 @@ <a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks"> {{.i18n.Tr "repo.settings.hooks"}} </a> + {{if or .SignedUser.AllowGitHook .SignedUser.IsAdmin}} <a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git"> {{.i18n.Tr "repo.settings.githooks"}} </a> + {{end}} <a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{.RepoLink}}/settings/keys"> {{.i18n.Tr "repo.settings.deploy_keys"}} </a> |