1{{ template "base.html" . }} {{ define "title" }}status — arche{{ end }} {{ define "content" }}
2<h2>working copy status</h2>
3<div class="info-row">
4 <div>
5 change <span><a href="/commit?id={{.HexID}}">ch:{{.ChangeID}}</a></span>
6 </div>
7 <div>
8 hash <span class="hash">{{.ShortHex}}</span>
9 </div>
10 <div>
11 phase <span class="phase-{{.PhaseClass}}">{{.Phase}}</span>
12 </div>
13</div>
14{{ if .Changes }}
15<table style="margin-top: 10px">
16 <thead>
17 <tr>
18 <th style="width: 30px">st</th>
19 <th>path</th>
20 </tr>
21 </thead>
22 <tbody>
23 {{ range .Changes }}
24 <tr>
25 <td>
26 <span class="status-{{.StatusChar}}">{{.StatusChar}}</span>
27 </td>
28 <td>{{.Path}}</td>
29 </tr>
30 {{ end }}
31 </tbody>
32</table>
33{{ else }}
34<p class="empty">working copy is clean</p>
35{{ end }} {{ end }}