summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-09-25 13:18:37 +0800
committerGitHub <noreply@github.com>2020-09-25 13:18:37 +0800
commit3c360801b3547cba80766403c0ee2835cb81272d (patch)
treeede959cb670140686ac8fcd7000f06fd50bac382 /templates/repo
parent7a7f56044ae0b94d9f5e733d863821dbe222a395 (diff)
downloadgitea-3c360801b3547cba80766403c0ee2835cb81272d.tar.gz
gitea-3c360801b3547cba80766403c0ee2835cb81272d.zip
Add IsTemplate option in create repo ui and api (#12942)
Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/create.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 47f5406574..d1f847b79f 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -181,6 +181,13 @@
</div>
</div>
</div>
+ <div class="inline field">
+ <label>{{.i18n.Tr "repo.template"}}</label>
+ <div class="ui checkbox">
+ <input class="hidden" name="template" type="checkbox" tabindex="0">
+ <label>{{.i18n.Tr "repo.template_helper"}}</label>
+ </div>
+ </div>
</div>
<br/>