all repos — legit @ 85d1bf73559536405d4eb22a6249a1e8d9030be3

web frontend for git, written in go

templates/index.html (view raw)

 1{{ define "index" }}
 2<html>
 3{{ template "head" . }}
 4
 5  <title>
 6    {{ .meta.Title }}
 7  </title>
 8
 9  <header>
10    <h1>{{ .meta.Title }}</h1>
11    <h2>{{ .meta.Description }}</h2>
12  </header>
13  <body>
14    <main>
15      <div class="index-headings small-heading">
16        <div>repository</div>
17        <div>description</div>
18        <div>idle</div>
19      </div>
20      <div class="index">
21      {{ range .info }}
22       <div><a href="/{{ .Name }}">{{ .Name }}</a></div>
23       <div class="desc">{{ .Desc }}</div>
24       <div>{{ .Idle }}</div>
25      {{ end }}
26      </div>
27    </main>
28  </body>
29</html>
30{{ end }}