1{{ template "base.html" . }} {{ define "title" }}bookmarks — arche{{ end }} {{ define "content" }}
2<h2>bookmarks</h2>
3{{ if .Bookmarks }}
4<table>
5 <thead>
6 <tr>
7 <th>name</th>
8 <th>change</th>
9 <th>hash</th>
10 <th>phase</th>
11 </tr>
12 </thead>
13 <tbody>
14 {{ range .Bookmarks }}
15 <tr>
16 <td>
17 {{.Name}} {{ if .IsHead }}<span class="badge" style="background: #1a2a1a; color: #7ae07a">@</span>{{ end }}
18 </td>
19 <td>
20 <a href="/commit?id={{.HexID}}">ch:{{.ChangeID}}</a>
21 </td>
22 <td>
23 <span class="hash">{{.ShortHex}}</span>
24 </td>
25 <td>
26 <span class="phase-{{.PhaseClass}}">{{.Phase}}</span>
27 </td>
28 </tr>
29 {{ end }}
30 </tbody>
31</table>
32{{ else }}
33<p class="empty">
34 no bookmarks yet — run <code>arche bookmark set <name></code>
35</p>
36{{ end }} {{ end }}