summaryrefslogtreecommitdiffstats
path: root/templates/admin/user
diff options
context:
space:
mode:
authorPawel Boguslawski <pawel.boguslawski@ib.pl>2022-01-31 15:12:47 +0100
committerAndrew Thornton <art27@cantab.net>2022-04-26 22:06:58 +0100
commit85579dcab533bca41f9789b7edef805645acf5ff (patch)
treecc55f1ec7b2b781664dd2a4c7cb4522dd4135d74 /templates/admin/user
parent076eaad7430dd80f202446487c99e95e8d803ab3 (diff)
downloadgitea-85579dcab533bca41f9789b7edef805645acf5ff.tar.gz
gitea-85579dcab533bca41f9789b7edef805645acf5ff.zip
Disable unnecessary GitHooks elements
This mod fixes disabling unnecessary GitHooks elements. Related: https://github.com/go-gitea/gitea/pull/13129 Author-Change-Id: IB#1115251
Diffstat (limited to 'templates/admin/user')
-rw-r--r--templates/admin/user/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 17bd2b936c..1ee46f3077 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -116,7 +116,7 @@
<input name="restricted" type="checkbox" {{if .User.IsRestricted}}checked{{end}}>
</div>
</div>
- <div class="inline field">
+ <div class="inline field"{{if DisableGitHooks}} hidden{{end}}>
<div class="ui checkbox tooltip" data-content="{{.i18n.Tr "admin.users.allow_git_hook_tooltip"}}" data-variation="very wide">
<label><strong>{{.i18n.Tr "admin.users.allow_git_hook"}}</strong></label>
<input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}>