internal/web/templates/issuenew.html

e4fa4034379ae93e3cf6f1084ed577a7e02b530c
gitbay/internal/web/templates/issuenew.html history · blame · raw

12 lines · 766 bytes

 1{{define "title"}}new issue · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3<h1>New issue</h1>
 4{{if gt (len .Templates) 1}}<p class="meta">template:
 5{{range .Templates}}{{if eq .Name $.Template}}<strong>{{.Name}}</strong>{{else}}<a href="?template={{.Name}}">{{.Name}}</a>{{end}} {{end}}</p>{{end}}
 6<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/new" class="commentform">
 7<p><input type="text" name="title" aria-label="Title" placeholder="title" required></p>
 8<p><textarea name="body" aria-label="Description" rows="12">{{.Body}}</textarea></p>
 9<p><input type="text" name="labels" aria-label="Labels" placeholder="labels, space-separated (write access)"></p>
10<p><button type="submit">Open issue</button></p>
11</form>
12{{end}}