arche / internal/ui/templates/log.html

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