all repos

mugit @ 5935eaa2775716f470872a89496cf2854c61028f

🐮 git server that your cow will love

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ui: idle -> last update, 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="index">
15
        <thead>
16
          <tr class="nohover">
17
            <th class="url">Name</th>
18
            <th class="desc">Description</th>
19
            <th class="idle">Last update</th>
20
          </tr>
21
        </thead>
22
        <tbody>
23
          {{ range .repos }}
24
          <tr>
25
            <td class="url"><a href="/{{ .Name }}">{{ .Name }}</a></td>
26
            <td class="desc">{{- if .Desc }}{{ .Desc }}{{- else }}<span class="unset">No description set</span>{{- end }}
27
            <td class="idle">{{ humanizeTime .LastCommit }}</td>
28
          </tr>
29
          {{ end}}
30
        </tbody>
31
      </table>
32
    </main>
33
  </body>
34
</html>
35
{{ end }}