Skip to content

Commit 8a0eb58

Browse files
committed
Div hiding fix reverted
Placing hidden as CSS class only greys out this option; we want to hide it. According to https://stackoverflow.com/questions/1992114/how-do-you-create-a-hidden-div-that-doesnt-create-a-line-break-or-horizontal-sp/27548863#27548863 using hidden as attribute is ok and works ok in gitea. Fixes: 6437b04 Author-Change-Id: IB#1115251
1 parent 6437b04 commit 8a0eb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/admin/user/edit.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<input name="restricted" type="checkbox" {{if .User.IsRestricted}}checked{{end}}>
117117
</div>
118118
</div>
119-
<div class="inline field{{if DisableGitHooks}} hidden{{end}}">
119+
<div class="inline field"{{if DisableGitHooks}} hidden{{end}}>
120120
<div class="ui checkbox tooltip" data-content="{{.i18n.Tr "admin.users.allow_git_hook_tooltip"}}" data-variation="very wide">
121121
<label><strong>{{.i18n.Tr "admin.users.allow_git_hook"}}</strong></label>
122122
<input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}>

0 commit comments

Comments
 (0)