all repos — legit @ abe300762f2f01cddeabad1bc98b0dfee599a5e8

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      <h3>tags</h3>
23      {{ range .tags }}
24      <strong>{{ .Name }}</strong>
25      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
26      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
27      {{ if .Message }}
28      <pre>{{ .Message }}</pre>
29      {{ end }}
30      {{ end }}
31      {{ end }}
32    </main>
33  </body>
34</html>
35{{ end }}