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 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>
|
2019-11-11 16:15:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="inline field">
|
|
|
|
<label>.gitignore</label>
|
2024-04-22 13:21:06 +02:00
|
|
|
<div class="ui multiple search selection dropdown">
|
2019-11-11 16:15:29 +01:00
|
|
|
<input type="hidden" name="gitignores" value="{{.gitignores}}">
|
2023-09-25 10:56:50 +02:00
|
|
|
<div class="default text">{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}</div>
|
2019-11-11 16:15:29 +01:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Gitignores}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-25 10:56:50 +02:00
|
|
|
<span class="help">{{ctx.Locale.Tr "repo.repo_gitignore_helper_desc"}}</span>
|
2019-11-11 16:15:29 +01:00
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{ctx.Locale.Tr "repo.license"}}</label>
|
2019-11-11 16:15:29 +01:00
|
|
|
<div class="ui search selection dropdown">
|
|
|
|
<input type="hidden" name="license" value="{{.license}}">
|
2023-09-25 10:56:50 +02:00
|
|
|
<div class="default text">{{ctx.Locale.Tr "repo.license_helper"}}</div>
|
2019-11-11 16:15:29 +01:00
|
|
|
<div class="menu">
|
2023-09-25 10:56:50 +02:00
|
|
|
<div class="item" data-value="">{{ctx.Locale.Tr "repo.license_helper"}}</div>
|
2019-11-11 16:15:29 +01:00
|
|
|
{{range .Licenses}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-10 09:51:19 +01:00
|
|
|
<span class="help">{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/"}}</span>
|
2019-11-11 16:15:29 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inline field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{ctx.Locale.Tr "repo.readme"}}</label>
|
2019-11-11 16:15:29 +01:00
|
|
|
<div class="ui selection dropdown">
|
|
|
|
<input type="hidden" name="readme" value="{{.readme}}">
|
2023-09-25 10:56:50 +02:00
|
|
|
<div class="default text">{{ctx.Locale.Tr "repo.readme_helper"}}</div>
|
2019-11-11 16:15:29 +01:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Readmes}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-25 10:56:50 +02:00
|
|
|
<span class="help">{{ctx.Locale.Tr "repo.readme_helper_desc"}}</span>
|
2019-11-11 16:15:29 +01:00
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox" id="auto-init">
|
2023-08-26 04:44:00 +02:00
|
|
|
<input name="auto_init" type="checkbox" {{if .auto_init}}checked{{end}}>
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{ctx.Locale.Tr "repo.auto_init"}}</label>
|
2019-11-11 16:15:29 +01:00
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-27 18:05:51 +02:00
|
|
|
<br>
|
2015-12-07 23:30:52 +01:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2023-09-19 00:05:31 +02:00
|
|
|
<button class="ui primary button{{if not .CanCreateRepo}} disabled{{end}}">
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.create_repo"}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-20 03:45:43 +01:00
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{template "base/footer" .}}
|