apps/kepler/templates/refs.html 1.4 K raw
1
{{define "refs.html"}}{{template "base.html" .}}{{end}}
2
{{define "title"}}refs — {{.Repo.Name}} — {{.SiteName}}{{end}}
3
{{define "tabs"}}
4
<a href="/{{.Repo.Name}}" class="tab">home</a>
5
<a href="/{{.Repo.Name}}/log/{{.DefaultRef}}" class="tab">log</a>
6
<a href="/{{.Repo.Name}}/refs" class="tab active">refs</a>
7
{{end}}
8
{{define "content"}}
9
<h3>Branches</h3>
10
{{if .Branches}}
11
<table class="ref-list">
12
    <tbody>
13
        {{range .Branches}}
14
        <tr>
15
            <td class="ref-name"><a href="/{{$.Repo.Name}}/tree/{{.Name}}">{{.Name}}</a></td>
16
            <td class="hash">{{shortSHA .SHA}}</td>
17
            <td class="author desktop">{{.Author}}</td>
18
            <td class="date">{{timeAgo .Time}}</td>
19
            <td><a href="/{{$.Repo.Name}}/log/{{.Name}}">log</a></td>
20
        </tr>
21
        {{end}}
22
    </tbody>
23
</table>
24
{{else}}
25
<p class="empty">No branches.</p>
26
{{end}}
27
28
<h3>Tags</h3>
29
{{if .Tags}}
30
<table class="ref-list">
31
    <tbody>
32
        {{range .Tags}}
33
        <tr>
34
            <td class="ref-name"><a href="/{{$.Repo.Name}}/tree/{{.Name}}">{{.Name}}</a></td>
35
            <td class="hash">{{shortSHA .SHA}}</td>
36
            <td class="author desktop">{{.Author}}</td>
37
            <td class="date">{{timeAgo .Time}}</td>
38
            <td><a href="/{{$.Repo.Name}}/archive/{{.Name}}.tar.gz">tar.gz</a></td>
39
        </tr>
40
        {{end}}
41
    </tbody>
42
</table>
43
{{else}}
44
<p class="empty">No tags.</p>
45
{{end}}
46
{{end}}