all repos — legit @ 6857a2f002358c47f588c8417482a5afd01725d0

web frontend for git, written in go

templates/repo.html (view raw)

 1{{ define "repo" }}
 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      {{ range .files }}
13      {{ if .IsFile }}
14      <p>{{ .Mode }} {{ .Name }} {{ .Size }} </p>
15      {{ else }}
16      <p>d-------- {{ .Name}}/</p>
17      {{ end }}
18      {{ end }}
19    </main>
20  </body>
21</html>
22{{ end }}