summaryrefslogtreecommitdiffstats
path: root/templates/repo/create.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r--templates/repo/create.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index f728a93631..69f2abb687 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -72,10 +72,18 @@
<input class="hidden" name="git_content" type="checkbox" tabindex="0" {{if .git_content}}checked{{end}}>
<label>{{.i18n.Tr "repo.template.git_content"}}</label>
</div>
+ <div class="ui checkbox" {{if not .SignedUser.CanEditGitHook}}data-tooltip="{{.i18n.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
+ <input class="hidden" name="git_hooks" type="checkbox" tabindex="0" {{if .git_hooks}}checked{{end}}>
+ <label>{{.i18n.Tr "repo.template.git_hooks"}}</label>
+ </div>
</div>
<div class="inline field">
<label></label>
<div class="ui checkbox">
+ <input class="hidden" name="webhooks" type="checkbox" tabindex="0" {{if .webhooks}}checked{{end}}>
+ <label>{{.i18n.Tr "repo.template.webhooks"}}</label>
+ </div>
+ <div class="ui checkbox">
<input class="hidden" name="topics" type="checkbox" tabindex="0" {{if .topics}}checked{{end}}>
<label>{{.i18n.Tr "repo.template.topics"}}</label>
</div>