arche / internal/ui/templates/issues.html

commit 154431fd
 1{{ template "base.html" . }} {{ define "title" }}Issues — Arche{{ end }} {{ define "content" }}
 2<h2>Issues</h2>
 3{{ if .Issues }}
 4<table>
 5    <thead>
 6        <tr>
 7            <th>ID</th>
 8            <th>Status</th>
 9            <th>Title</th>
10        </tr>
11    </thead>
12    <tbody>
13        {{ range .Issues }}
14        <tr>
15            <td>
16                <a href="/issue?id={{.ID}}" class="hash">{{.ID}}</a>
17            </td>
18            <td>
19                <span class="status-{{.Status}}">{{.Status}}</span>
20            </td>
21            <td>
22                <a href="/issue?id={{.ID}}">{{.Title}}</a>
23            </td>
24        </tr>
25        {{ end }}
26    </tbody>
27</table>
28{{ else }}
29<p class="empty">No issues yet.</p>
30{{ end }} {{ end }}