all repos

mugit @ b7d443e

🐮 git server that your cow will love

mugit/web/templates/repo_log.html (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
fix formatting in some of the templates , 3 months ago
1
{{ define "repo_log" }}
2
<html>
3
  <head>
4
    {{ template "head" . }}
5
  <title>{{ .name }}: log</title>
6
  </head>
7
  <body>
8
    {{ template "repo_header" . }}
9
    <main>
10
      {{ $repo := .name }}
11
      <table class="table log">
12
        <thead>
13
          <tr class="nohover">
14
            <th class="fill">Message</th>
15
            <th class="author nowrap">Author</th>
16
            <th>Hash</th>
17
            <th class="age nowrap">Age</th>
18
          </tr>
19
        </thead>
20
        <tbody>
21
          {{ range .commits }}
22
          <tr>
23
            <td class="fill">
24
              <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</a>
25
            </td>
26
            <td class="author nowrap">
27
              <span class="author-short">
28
                {{ .AuthorName }} <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
29
              </span>
30
              <span class="tooltip" role="tooltip">
31
                <strong>{{ .AuthorName }}</strong><br>
32
                <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
33
              </span>
34
            </td>
35
            <td class="">
36
              <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ .HashShort }}</a>
37
            </td>
38
            <td class="age nowrap">
39
              {{ humanizeTime .Committed }}
40
              <span class="tooltip" role="tooltip">{{ .Committed }}</span>
41
            </td>
42
          </tr>
43
          {{ end }}
44
        </tbody>
45
      </table>
46
    </main>
47
  </body>
48
</html>
49
{{ end }}