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 |
{{ define "repo_log" }}
<html>
<head>
{{ template "head" . }}
<title>{{ .name }}: log</title>
</head>
{{ template "repo_header" . }}
<body>
<main>
{{ $repo := .name }}
<table class="log">
<thead>
<tr class="nohover">
<th class="msg">commit</th>
<th class="author">author</th>
<th class="age">age</th>
</tr>
</thead>
<tbody>
{{ range .commits }}
<tr>
<td class="msg">
<a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ commitSummary .Message }}</a>
</td>
<td class="author">
<span class="author-short">
{{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
</span>
<span class="tooltip" role="tooltip">
<strong>{{ .Author.Name }}</strong><br>
<a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
</span>
</td>
<td class="age">
<span class="age-display">{{ humanizeTime .Committer.When }}</span>
<span class="tooltip" role="tooltip">{{ .Committer.When }}</span>
</td>
</tr>
{{ end }}
</tbody>
</table>
</main>
</body>
</html>
{{ end }}
|