Skip to content

Commit 4a07996

Browse files
jolheiserYohann Delafollye
authored andcommitted
Add git hook tooltip (go-gitea#11030)
Signed-off-by: jolheiser <[email protected]>
1 parent 4951db3 commit 4a07996

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,6 +1881,7 @@ users.prohibit_login = Disable Sign-In
18811881
users.is_admin = Is Administrator
18821882
users.is_restricted = Is Restricted
18831883
users.allow_git_hook = May Create Git Hooks
1884+
users.allow_git_hook_tooltip = Git Hooks are executed as the OS user running Gitea and will have the same level of host access
18841885
users.allow_import_local = May Import Local Repositories
18851886
users.allow_create_organization = May Create Organizations
18861887
users.update_profile = Update User Account

templates/admin/user/edit.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</div>
9191
</div>
9292
<div class="inline field">
93-
<div class="ui checkbox">
93+
<div class="ui checkbox" data-tooltip="{{.i18n.Tr "admin.users.allow_git_hook_tooltip"}}">
9494
<label><strong>{{.i18n.Tr "admin.users.allow_git_hook"}}</strong></label>
9595
<input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}>
9696
</div>

0 commit comments

Comments
 (0)