internal/web/templates/fork.html

32a5f76e5b270097b63a5bba9a43557cf50ad63d
gitbay/internal/web/templates/fork.html history · blame · raw

18 lines · 1049 bytes

 1{{define "width"}}bounded{{end}}
 2{{define "title"}}fork {{.Repo.OwnerName}}/{{.Repo.Name}} · {{.Site}}{{end}}
 3{{define "content"}}
 4<h1>Fork {{.Repo.OwnerName}}/{{.Repo.Name}}</h1>
 5{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
 6<p class="meta">A fork is a copy of every branch, owned by you or by an
 7organization you administer. Its issues, merge requests and settings are its
 8own.</p>
 9<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/fork">
10<p><label>Owner <select name="owner">
11  <option value="{{.Viewer}}">{{.Viewer}}</option>
12  {{range .Orgs}}<option value="{{.}}"{{if eq . $.Owner}} selected{{end}}>{{.}}</option>{{end}}
13</select></label>
14<label>/ Name <input name="name" required maxlength="63" pattern="[a-z0-9][a-z0-9._\-]{0,62}" value="{{.Name}}" aria-describedby="forkhint" autocomplete="off" spellcheck="false"></label>
15<span class="hint" id="forkhint">Defaults to the source name; change it to fork twice into the same owner.</span></p>
16<p><button type="submit">Create fork</button></p>
17</form>
18{{end}}