aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-11-24 23:17:51 -0600
committerLunny Xiao <xiaolunwen@gmail.com>2019-11-25 13:17:51 +0800
commit62bcb2b7f1ce1a64f828d94f045d06bd8605455a (patch)
tree05e9c5c46e08ca787bc08326af6cadb130ded0fd /templates
parent95c3dc856a7d4199232549e3b4d76769ef868bda (diff)
downloadgitea-62bcb2b7f1ce1a64f828d94f045d06bd8605455a.tar.gz
gitea-62bcb2b7f1ce1a64f828d94f045d06bd8605455a.zip
Add avatar and issue labels to template repositories (#9149)
* Add avatar and issue labels Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix redundant if-err Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/create.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 69f2abb687..c71c3ab5a6 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -88,6 +88,17 @@
<label>{{.i18n.Tr "repo.template.topics"}}</label>
</div>
</div>
+ <div class="inline field">
+ <label></label>
+ <div class="ui checkbox">
+ <input class="hidden" name="avatar" type="checkbox" tabindex="0" {{if .avatar}}checked{{end}}>
+ <label>{{.i18n.Tr "repo.template.avatar"}}</label>
+ </div>
+ <div class="ui checkbox">
+ <input class="hidden" name="labels" type="checkbox" tabindex="0" {{if .labels}}checked{{end}}>
+ <label>{{.i18n.Tr "repo.template.issue_labels"}}</label>
+ </div>
+ </div>
</div>
<div id="non_template">