all repos

mugit @ c845996160477bdbc59a4c4e3abd52518e5d0253

🐮 git server that your cow will love

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ui: add tooltip for commit dates, 4 months ago
1
{{ define "index" }}
2
<!DOCTYPE html>
3
<html>
4
  <head>
5
    {{ template "head" . }}
6
    <title>{{ .meta.Title }}</title>
7
  </head>
8
  <header>
9
    <h1>{{ .meta.Title }}</h1>
10
    <h2>{{ .meta.Description }}</h2>
11
  </header>
12
  <body>
13
    <main>
14
      <table class="table index">
15
        <thead>
16
          <tr class="nohover">
17
            <th class="nowrap">Name</th>
18
            <th class="fill">Description</th>
19
            <th class="nowrap">Last update</th>
20
          </tr>
21
        </thead>
22
        <tbody>
23
          {{ range .repos }}
24
          <tr>
25
            <td class="nowrap"><a href="/{{ .Name }}">{{ .Name }}</a></td>
26
            <td class="fill">{{- if .Desc }}{{ .Desc }}{{- else }}<span class="muted">No description set</span>{{- end }}
27
            <td class="nowrap">
28
              <span class="age">
29
                {{- humanizeTime .LastCommit -}}
30
                <span class="tooltip" role="tooltip">{{- .LastCommit -}}</span>
31
              </span>
32
            </td>
33
          </tr>
34
          {{ end}}
35
        </tbody>
36
      </table>
37
    </main>
38
  </body>
39
</html>
40
{{ end }}