all repos — legit @ ac6ca71f01885b3fff692b4b9ee36ed33965d396

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 }}