summaryrefslogtreecommitdiffstats
path: root/templates/refs.html
blob: 347ff3b71624c20144c3139b89656648036bc948 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{ define "refs" }}
<html>
{{ template "head" . }}

{{ template "repoheader" . }}

<body>
  {{ template "nav" . }}
  <main>
    {{ $name := .repo }}
    <h3>branches</h3>
    <div class="refs">
      {{ range .branches }}
      <div>
        <strong>{{ .Name.Short }}</strong>
        <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
        <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
      </div>
      {{ end }}
    </div>
    {{ if .tags }}
    <h3>tags</h3>
    <div class="refs">
      {{ range .tags }}
      <div>
        <strong>{{ .Name }}</strong>
        <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
        <a href="/{{ $name }}/log/{{ .Name }}">log</a>
        {{ if .Message }}
        <pre>{{ .Message }}</pre>
      </div>
      {{ end }}
      {{ end }}
    </div>
    {{ end }}
  </main>
</body>

</html>
{{ end }}