internal/web/templates/issuenew.html

0666c9f622171df00f8e2c79a13d011522039624
gitbay/internal/web/templates/issuenew.html

15 lines · 970 bytes

 1{{define "width"}}bounded{{end}}
 2{{define "title"}}new issue · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 3{{define "content"}}
 4<h1>New issue</h1>
 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{{if .Draft.Is "body"}}{{template "previewblock" .Draft.HTML}}{{end}}
 8<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/new" class="commentform">
 9<p><input type="text" name="title" aria-label="Title" placeholder="title" value="{{.Title}}" required></p>
10<p><textarea name="body" aria-label="Description" rows="12">{{.Body}}</textarea></p>
11{{template "formatpicker" .Format}}
12<p><input type="text" name="labels" aria-label="Labels" placeholder="labels, space-separated (write access)" value="{{.Labels}}"></p>
13<p><button type="submit">Open issue</button> {{template "previewbtn"}}</p>
14</form>
15{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form