mugit/web/templates/repo_log.html (view raw)
| 1 | {{ define "repo_log" }} |
| 2 | <html> |
| 3 | <head> |
| 4 | {{ template "head" . }} |
| 5 | <title>{{ .name }}: log</title> |
| 6 | </head> |
| 7 | {{ template "repo_header" . }} |
| 8 | <body> |
| 9 | <main> |
| 10 | {{ $repo := .name }} |
| 11 | |
| 12 | <table class="log"> |
| 13 | <thead> |
| 14 | <tr class="nohover"> |
| 15 | <th class="msg">Message</th> |
| 16 | <th class="author">Author</th> |
| 17 | <th class="hash">Hash</th> |
| 18 | <th class="age">Age</th> |
| 19 | </tr> |
| 20 | </thead> |
| 21 | <tbody> |
| 22 | {{ range .commits }} |
| 23 | <tr> |
| 24 | <td class="msg"> |
| 25 | <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</a> |
| 26 | </td> |
| 27 | <td class="author"> |
| 28 | <span class="author-short"> |
| 29 | {{ .AuthorName }} <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a> |
| 30 | </span> |
| 31 | <span class="tooltip" role="tooltip"> |
| 32 | <strong>{{ .AuthorName }}</strong><br> |
| 33 | <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a> |
| 34 | </span> |
| 35 | </td> |
| 36 | <td class=""> |
| 37 | <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ .HashShort }}</a> |
| 38 | </td> |
| 39 | <td class="age"> |
| 40 | <span class="age-display">{{ humanizeTime .Committed }}</span> |
| 41 | <span class="tooltip" role="tooltip">{{ .Committed }}</span> |
| 42 | </td> |
| 43 | </tr> |
| 44 | {{ end }} |
| 45 | </tbody> |
| 46 | </table> |
| 47 | </main> |
| 48 | </body> |
| 49 | </html> |
| 50 | {{ end }} |