mugit/web/templates/repo_log.html(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
{{ define "repo_log" }}
{{ $repo := .RepoName }}
<html>
<head>
{{ template "head" . }}
<title>{{ $repo }}: log</title>
</head>
<body>
{{ template "repo_header" . }}
<main>
<table class="table log">
<thead>
<tr class="nohover">
<th class="fill">Message</th>
<th class="author nowrap">Author</th>
<th>Hash</th>
<th class="age nowrap">Age</th>
</tr>
</thead>
<tbody>
{{ range .P.Commits }}
<tr>
<td class="fill">
<a href="/{{ $repo }}/commit/{{ .Hash }}">
{{- if .Message }}{{- commitSummary .Message -}}
{{- else -}}<span class="muted">Empty message</span>{{- end -}}
</a>
</td>
<td class="author nowrap">
<span class="author-short">
{{ .AuthorName }} <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
</span>
<span class="tooltip" role="tooltip">
<strong>{{ .AuthorName }}</strong><br>
<a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
</span>
</td>
<td class="commit-hash">
<a href="/{{ $repo }}/commit/{{ .Hash }}">{{ .HashShort }}</a>
</td>
<td class="age nowrap">
{{ humanizeRelTime .Committed }}
<span class="tooltip" role="tooltip">{{ humanizeTime .Committed }}</span>
</td>
</tr>
{{ end }}
</tbody>
</table>
<div class="center">
{{- if .P.NextAfter }}
<a href="?after={{ urlencode .P.NextAfter }}">[load more]</a>
{{- end }}
</div>
</main>
</body>
</html>
{{ end }}
|