all repos

mugit @ 43a8458

🐮 git server that your cow will love

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ui: redo css, again, 2 months ago
1
{{ define "repo_log" }}
2
{{ $repo := .RepoName }}
3
<html>
4
  <head>
5
    {{ template "head" . }}
6
    <title>{{ $repo }}: log</title>
7
  </head>
8
  <body>
9
    {{ template "repo_header" . }}
10
    <main>
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 .P.Commits }}
22
          <tr>
23
            <td class="fill">
24
              <a href="/{{ $repo }}/commit/{{ .Hash }}">
25
                {{- if .Message }}{{- commitSummary .Message -}}
26
                {{- else -}}<span class="muted">Empty message</span>{{- end -}}
27
              </a>
28
            </td>
29
            <td class="has-tip nowrap">
30
              <span class="author-short">
31
                {{ .AuthorName }} <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
32
              </span>
33
              <span class="tooltip" role="tooltip">
34
                <strong>{{ .AuthorName }}</strong><br>
35
                <a href="mailto:{{ .AuthorEmail }}" class="commit-email">{{ .AuthorEmail }}</a>
36
              </span>
37
            </td>
38
            <td class="mono">
39
              <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ .HashShort }}</a>
40
            </td>
41
            <td class="has-tip nowrap">
42
              {{ humanizeRelTime .Committed }}
43
              <span class="tooltip" role="tooltip">{{ humanizeTime .Committed }}</span>
44
            </td>
45
          </tr>
46
          {{ end }}
47
        </tbody>
48
      </table>
49
      <div class="center">
50
        {{ if .P.NextAfter }}
51
        <a href="?after={{ urlencode .P.NextAfter }}">[load more]</a>
52
        {{ end }}
53
      </div>
54
    </main>
55
  </body>
56
</html>
57
{{ end }}