blob: e0907ce392e457e6936f812134cc3223f1142325 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{{define "title"}}Issues, {{.Data.Path}} - {{.Site}}{{end}}
{{define "main"}}
<div class="bar">
<form method="get" action="/{{.Data.Path}}/issues">
<input id="q" name="q" value="{{.Data.Query}}" placeholder="search the tracker" size="30">
<input type="hidden" name="state" value="{{.Data.State}}">
<button type="submit">search</button>
</form>
<span>
{{if eq .Data.State "open"}}<strong>open</strong>{{else}}<a href="/{{.Data.Path}}/issues?state=open&q={{.Data.Query}}">open</a>{{end}}
{{if eq .Data.State "closed"}}<strong>closed</strong>{{else}}<a href="/{{.Data.Path}}/issues?state=closed&q={{.Data.Query}}">closed</a>{{end}}
<a href="/{{.Data.Path}}.issues/">history</a>
{{if .Data.Can}}<a href="/{{.Data.Path}}/issues/new">open an issue</a>{{end}}
</span>
</div>
<table summary="issues" class="list nowrap">
<tr class="nohover">
<th class="left">#</th><th class="left">Title</th>
<th class="left">Labels</th><th class="left">Author</th><th class="left">Updated</th>
</tr>
{{range .Data.Issues}}
<tr>
<td>{{.ID}}</td>
<td><a href="/{{$.Data.Path}}/issues/{{.ID}}">{{.Title}}</a></td>
<td class="dim">{{range .Labels}}<span class="label">{{.}}</span> {{end}}</td>
<td>{{template "who" .Author}}</td>
<td class="dim">{{.Updated.Format "2006-01-02"}}</td>
</tr>
{{else}}
<tr><td colspan="5" class="dim">Nothing here.</td></tr>
{{end}}
</table>
{{end}}
|