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