templates/refs.html 1.2 KiB raw
1
{{define "content"}}
2
{{if .Data.Branches}}
3
<table class="ref-list">
4
<thead>
5
  <tr>
6
    <th>Branch</th>
7
    <th>Hash</th>
8
    <th class="desktop">Subject</th>
9
    <th class="author desktop">Author</th>
10
    <th>Idle</th>
11
  </tr>
12
</thead>
13
<tbody>
14
{{range .Data.Branches}}
15
  <tr>
16
    <td><a href="{{$.BaseURL}}/{{$.Repo}}/log/{{.Name}}">{{.Name}}</a></td>
17
    <td class="hash"><a href="{{$.BaseURL}}/{{$.Repo}}/commit/{{.Hash}}">{{.ShortHash}}</a></td>
18
    <td class="subject desktop">{{.Subject}}</td>
19
    <td class="author desktop">{{.Author}}</td>
20
    <td class="date">{{timeAgo .Date}}</td>
21
  </tr>
22
{{end}}
23
</tbody>
24
</table>
25
{{end}}
26
27
{{if .Data.Tags}}
28
<table class="ref-list">
29
<thead>
30
  <tr>
31
    <th>Tag</th>
32
    <th>Hash</th>
33
    <th class="desktop">Subject</th>
34
    <th class="author desktop">Author</th>
35
    <th>Idle</th>
36
  </tr>
37
</thead>
38
<tbody>
39
{{range .Data.Tags}}
40
  <tr>
41
    <td><a href="{{$.BaseURL}}/{{$.Repo}}/commit/{{.Hash}}">{{.Name}}</a></td>
42
    <td class="hash"><a href="{{$.BaseURL}}/{{$.Repo}}/commit/{{.Hash}}">{{.ShortHash}}</a></td>
43
    <td class="subject desktop">{{.Subject}}</td>
44
    <td class="author desktop">{{.Author}}</td>
45
    <td class="date">{{timeAgo .Date}}</td>
46
  </tr>
47
{{end}}
48
</tbody>
49
</table>
50
{{end}}
51
{{end}}