all repos — legit @ d879c2dfb088cb7911e322694c101fb0bdf7c0c0

web frontend for git, written in go

templates/index.html (view raw)

 1{{ define "index" }}
 2<html>
 3{{ template "head" . }}
 4
 5  <header>
 6    <h1>{{ .meta.Title }}</h1>
 7    <h2>{{ .meta.Description }}</h2>
 8  </header>
 9  <body>
10    {{ template "nav" . }}
11    <main>
12      <table>
13        <tr>
14          <td>repository</td>
15          <td>last active</td>
16        </tr>
17        {{ range $repo, $lc := .info }}
18        <tr>
19          <td><a href="/{{ $repo }}">{{ $repo }}</a></td>
20          <td>{{ $lc }}</td>
21        </tr>
22        {{ end }}
23      </table>
24    </main>
25  </body>
26</html>
27{{ end }}