all repos — legit @ 7a6ff3565e8e5f55d50c509c9ee12438b61c850e

web frontend for git

templates/refs.html (view raw)

 1{{ define "refs" }}
 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      <h3>branches</h3>
13      {{ $name := .name }}
14      {{ range .branches }}
15      <p>
16      <strong>{{ .Name.Short }}</strong>
17      <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
18      <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
19      </p>
20      {{ end }}
21      {{ if .tags }}
22      {{ range .tags }}
23      <p>{{ .Name }}</p>
24      {{ if .Message }}
25      <p>{{ .Message }}</p>
26      {{ end }}
27      {{ end }}
28      {{ end }}
29    </main>
30  </body>
31</html>
32{{ end }}