mugit/web/templates/repo_log.html (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com web: shoutout to my boy Opus for improving my css, 4 months ago
olexsmir@gmail.com web: shoutout to my boy Opus for improving my css, 4 months ago
| 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="table log"> |
| 13 | <thead> |
| 14 | <tr class="nohover"> |
| 15 | <th class="fill">Message</th> |
| 16 | <th class="author nowrap">Author</th> |
| 17 | <th>Hash</th> |
| 18 | <th class="age nowrap">Age</th> |
| 19 | </tr> |
| 20 | </thead> |
| 21 | <tbody> |
| 22 | {{ range .commits }} |
| 23 | <tr> |
| 24 | <td class="fill"> |
| 25 | <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</a> |
| 26 | </td> |
| 27 | <td class="author nowrap"> |
| 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 nowrap"> |
| 40 | {{ humanizeTime .Committed }} |
| 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 }} |