all repos — legit @ 0e6eaa211357cd5b9de1762b1cb49e47d35580dc

legit - simple git web interface in go (fork)

templates/index.html (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
{{ define "index" }}
<html>
{{ template "head" . }}

  <title>
    {{ .meta.Title }}
  </title>

  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    <main>
      <div class="index">
      {{ range .info }}
       <div class="index-name"><a href="/{{ .Name }}">{{ .Name }}</a></div>
       <div class="desc">{{ .Desc }}</div>
       <div>{{ .Idle }}</div>
      {{ end }}
      </div>
    </main>
  </body>
</html>
{{ end }}