all repos

mugit @ 1043e315af50cdd442184223ba00346490ba178c

🐮 git server that your cow will love

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ui: add ui, 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="log">
13
        <thead>
14
          <tr class="nohover">
15
            <th class="msg">commit</th>
16
            <th class="author">author</th>
17
            <th class="age">age</th>
18
          </tr>
19
        </thead>
20
        <tbody>
21
          {{ range .commits }}
22
          <tr>
23
            <td class="msg">
24
              <a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ commitSummary .Message }}</a>
25
            </td>
26
            <td class="author">
27
              <span class="author-short">
28
                {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
29
              </span>
30
              <span class="author-tip" role="tooltip">
31
                <strong>{{ .Author.Name }}</strong><br>
32
                <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
33
              </span>
34
            </td>
35
            <td class="age">{{ humanTime .Committer.When }}</td>
36
          </tr>
37
          {{ end }}
38
        </tbody>
39
      </table>
40
    </main>
41
  </body>
42
</html>
43
{{ end }}