~gitpocket/gitpocket

4
90c0625bea54515dbc82bd07ba2961ddd0d358ea
mainfeed-discovery
gitpocket/web/templates/create.tmpl -rw-r--r--1.6 KiB ViewLogBlameView rawPermalink 90c0625bea feat(import): import repositories over https and claim matching commit authors 3 hours ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{{define "content"}}
<h3>Create new repository</h3>
<p class="muted">Already have it somewhere else? <a href="/import{{with .Data.Owner}}?owner={{.}}{{end}}">Import a repository</a> from GitHub, GitLab, Gitea, Forgejo or any https git URL.</p>
<form method="post" action="/create" class="twocol">
<div>
{{with .Data.Orgs}}<label>Owner <select name="owner"><option value="{{$.User.Name}}">~{{$.User.Name}}</option>{{range .}}<option value="{{.Name}}"{{if eq .Name $.Data.Owner}} selected{{end}}>~{{.Name}}</option>{{end}}</select></label>{{end}}
<label>Repository name <input name="name" required autofocus pattern="[a-z0-9][a-z0-9_.-]{0,38}" placeholder="{{.Data.Suggest}}" value="{{.Data.Name}}"></label>
<label>Description <input name="description" maxlength="200" placeholder="Short description, shown in lists" value="{{.Data.Description}}"></label>
<label>Tags <input name="tags" placeholder="Up to three comma separated topics" value="{{.Data.Tags}}"></label>
<div class="actions"><button class="btn primary">Create repository ▸</button></div>
</div>
<div>
<span class="legend">Visibility</span>
<label class="radio"><input type="radio" name="visibility" value="public" checked> Public<small>Shown on your profile and listed in the public index</small></label>
<label class="radio"><input type="radio" name="visibility" value="unlisted"> Unlisted<small>Visible to anyone who knows the URL, but not shown on your profile</small></label>
<label class="radio"><input type="radio" name="visibility" value="private"> Private<small>Only visible to you</small></label>
</div>
</form>
{{end}}