internal/web/templates/issuenew.html
12 lines · 636 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><button type="submit">open issue</button></p>
11</form>
12{{end}}