all repos

mugit @ deb6f00

🐮 git server that your cow will love

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
{{ define "repo_log" }}
<html>
  <head>
    {{ template "head" . }}
  <title>{{ .name }}: log</title>
  </head>
  {{ template "repo_header" . }}
  <body>
    <main>
      {{ $repo := .name }}

      <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 .commits }}
          <tr>
            <td class="fill">
              <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</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="">
              <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ .HashShort }}</a>
            </td>
            <td class="age nowrap">
              {{ humanizeTime .Committed }}
              <span class="tooltip" role="tooltip">{{ .Committed }}</span>
            </td>
          </tr>
          {{ end }}
        </tbody>
      </table>
    </main>
  </body>
</html>
{{ end }}