mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
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>
This commit is contained in:
@@ -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/>
|
||||
|
@@ -12063,6 +12063,11 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Readme"
|
||||
},
|
||||
"template": {
|
||||
"description": "Whether the repository is template",
|
||||
"type": "boolean",
|
||||
"x-go-name": "Template"
|
||||
},
|
||||
"trust_model": {
|
||||
"description": "TrustModel of the repository",
|
||||
"type": "string",
|
||||
|
Reference in New Issue
Block a user