~gitpocket/gitpocket

4
f44e2cbd66df51dc5a71b29e277f9b1042297176
mainfeed-discovery
gitpocket/web/templates/newpull.tmpl -rw-r--r--1.2 KiB ViewLogBlameView rawPermalink 34c1e1bf5b feat(search): detect languages with go-enry and gitattributes overrides 7 hours ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{{define "content"}}
{{$p := .Data.Page}}
<h3>New pull request</h3>
<form method="post" action="/{{$p.Repo.Path}}/pulls/new" class="twocol">
<div>
<label>Title <input name="title" required autofocus maxlength="200" value="{{.Data.PullTitle}}"></label>
<label>Description <textarea name="body" rows="8" placeholder="Markdown supported, paste or drop images to attach them" data-md>{{.Data.Body}}</textarea></label>
<div class="actions"><button class="btn primary">Create pull request ▸</button></div>
</div>
<div>
<label>Source branch <select name="source">{{range .Data.Sources}}<option value="{{.Value}}"{{if eq .Value $.Data.Source}} selected{{end}}>{{.Label}}</option>{{end}}</select><small>Branches of this repository and of your forks. Push a branch first if it is not listed.</small></label>
<label class="check"><input type="checkbox" name="draft"> Open as a draft<small>Drafts cannot be merged until marked ready</small></label>
<label>Target branch <select name="target">{{range .Data.Branches}}<option value="{{.Name}}"{{if eq .Name $.Data.Target}} selected{{else if and (not $.Data.Target) (eq .Name $p.Ref)}} selected{{end}}>{{.Name}}</option>{{end}}</select></label>
</div>
</form>
{{end}}