summaryrefslogtreecommitdiffstats
path: root/templates/refs.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/refs.html48
1 files changed, 25 insertions, 23 deletions
diff --git a/templates/refs.html b/templates/refs.html
index 76add7d..347ff3b 100644
--- a/templates/refs.html
+++ b/templates/refs.html
@@ -2,37 +2,39 @@
<html>
{{ template "head" . }}
- {{ template "repoheader" . }}
- <body>
- {{ template "nav" . }}
- <main>
- {{ $name := .name }}
- <h3>branches</h3>
- <div class="refs">
+{{ template "repoheader" . }}
+
+<body>
+ {{ template "nav" . }}
+ <main>
+ {{ $name := .repo }}
+ <h3>branches</h3>
+ <div class="refs">
{{ range .branches }}
- <div>
+ <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">
+ {{ 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>
+ <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>
+ </div>
+ {{ end }}
+ </main>
+</body>
+
</html>
-{{ end }}
+{{ end }} \ No newline at end of file