2015-08-28 08:44:04 +00:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 22:56:10 +00:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new repo">
|
2021-09-12 18:24:57 +00:00
|
|
|
<div class="ui middle very relaxed page one column grid">
|
2015-12-07 22:30:52 +00:00
|
|
|
<div class="column">
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<h3 class="ui top attached header">
|
2024-08-07 16:54:05 +00:00
|
|
|
{{ctx.Locale.Tr "new_repo.title"}}
|
2015-12-07 22:30:52 +00:00
|
|
|
</h3>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
{{template "base/alert" .}}
|
2023-01-24 19:01:39 +00:00
|
|
|
{{template "repo/create_helper" .}}
|
2021-02-21 09:59:31 +00:00
|
|
|
|
2021-01-21 23:44:37 +00:00
|
|
|
{{if not .CanCreateRepo}}
|
|
|
|
<div class="ui negative message">
|
2023-09-25 08:56:50 +00:00
|
|
|
<p>{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}</p>
|
2021-01-21 23:44:37 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-12-25 02:58:07 +00:00
|
|
|
<fieldset>
|
|
|
|
{{template "repo/create_basic" .}}
|
|
|
|
</fieldset>
|
2015-08-28 08:44:04 +00:00
|
|
|
|
2024-12-27 13:21:46 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
{{ctx.Locale.Tr "repo.new_from_template"}}
|
|
|
|
<span class="help">{{ctx.Locale.Tr "repo.new_from_template_description"}}</span>
|
|
|
|
</legend>
|
|
|
|
{{template "repo/create_from_template" .}}
|
|
|
|
</fieldset>
|
2015-08-28 08:44:04 +00:00
|
|
|
|
2019-11-11 15:15:29 +00:00
|
|
|
<div id="non_template">
|
2024-12-27 15:11:45 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ctx.Locale.Tr "repo.auto_init"}}</legend>
|
|
|
|
{{template "repo/create_init" .}}
|
|
|
|
</fieldset>
|
|
|
|
|
2024-12-27 13:21:46 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ctx.Locale.Tr "repo.new_advanced"}}</legend>
|
|
|
|
<details><summary>{{ctx.Locale.Tr "repo.new_advanced_expand"}}</summary>
|
|
|
|
{{template "repo/create_advanced" .}}
|
|
|
|
</details>
|
|
|
|
</fieldset>
|
2015-12-07 22:30:52 +00:00
|
|
|
</div>
|
2024-12-27 15:11:45 +00:00
|
|
|
<button class="ui primary button{{if not .CanCreateRepo}} disabled{{end}}">
|
|
|
|
{{ctx.Locale.Tr "repo.create_repo"}}
|
|
|
|
</button>
|
2015-12-07 22:30:52 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-20 02:45:43 +00:00
|
|
|
</div>
|
2015-12-07 22:30:52 +00:00
|
|
|
{{template "base/footer" .}}
|