summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 3ab82c7751364e897ccbeb9adb2000b8644528c5 (plain) (blame)
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
{{ define "index" }}
<html>
{{ template "head" . }}

  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    {{ template "nav" . }}
    <main>
      <table>
        <tr>
          <td>repository</td>
          <td>description</td>
          <td>last active</td>
        </tr>
        {{ range .info }}
        <tr>
          <td><a href="/{{ .Name }}">{{ .Name }}</a></td>
          <td>{{ .Desc }}</td>
          <td>{{ .Idle }}</td>
        </tr>
        {{ end }}
      </table>
    </main>
  </body>
</html>
{{ end }}