internal/web/templates/issuenew.html

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

13 lines · 730 bytes

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