all repos

mugit @ 1731de8

🐮 git server that your cow will love

mugit/web/templates/index.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
{{ define "index" }}
<!DOCTYPE html>
<html>
  <head>
    {{ template "head" . }}
    <title>{{ .meta.Title }}</title>
  </head>
  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    <main>
      <table class="index">
        <thead>
          <tr class="nohover">
            <th class="url">Name</th>
            <th class="desc">Description</th>
            <th class="idle">Idle</th>
          </tr>
        </thead>
        <tbody>
          {{ range .repos }}
          <tr>
            <td class="url"><a href="/{{ .Name }}">{{ .Name }}</a></td>
            <td class="desc">{{ .Desc }}</td>
            <td class="idle">{{ humanizeTime .LastCommit }}</td>
          </tr>
          {{ end}}
        </tbody>
      </table>
    </main>
  </body>
</html>
{{ end }}