apps/kepler/templates/log.html 1.1 K raw
1
{{define "log.html"}}{{template "base.html" .}}{{end}}
2
{{define "title"}}log — {{.Repo.Name}} — {{.SiteName}}{{end}}
3
{{define "tabs"}}
4
<a href="/{{.Repo.Name}}" class="tab">home</a>
5
<a href="/{{.Repo.Name}}/log/{{.Ref}}" class="tab active">log</a>
6
<a href="/{{.Repo.Name}}/refs" class="tab">refs</a>
7
{{end}}
8
{{define "content"}}
9
<table class="log-list">
10
    <thead>
11
        <tr>
12
            <th>Hash</th>
13
            <th>Subject</th>
14
            <th class="author desktop">Author</th>
15
            <th>Age</th>
16
        </tr>
17
    </thead>
18
    <tbody>
19
        {{range .Commits}}
20
        <tr>
21
            <td class="hash"><a href="/{{$.Repo.Name}}/commit/{{.SHA}}">{{.ShortSHA}}</a></td>
22
            <td class="subject">{{.Subject}}</td>
23
            <td class="author desktop">{{.Author}}</td>
24
            <td class="date">{{timeAgo .When}}</td>
25
        </tr>
26
        {{end}}
27
    </tbody>
28
</table>
29
30
<div class="pagination">
31
    {{if .HasPrev}}<a href="/{{.Repo.Name}}/log/{{.Ref}}?page={{.PrevPage}}">&larr; Newer</a>{{end}}
32
    {{if .HasNext}}<a href="/{{.Repo.Name}}/log/{{.Ref}}?page={{.NextPage}}">Older &rarr;</a>{{end}}
33
</div>
34
{{end}}