summaryrefslogtreecommitdiffstats
path: root/templates/refs.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
commite4d12fc667c9830dd5f08f827b2a70adff58a09b (patch)
treec052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/refs.html
parent3e6a720154b70a9882af14399548e494b1d0089f (diff)
downloadlegit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.gz
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.bz2
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.zip
templates: unified repo-header
Diffstat (limited to 'templates/refs.html')
-rw-r--r--templates/refs.html27
1 files changed, 17 insertions, 10 deletions
diff --git a/templates/refs.html b/templates/refs.html
index aee4a11..5320a8e 100644
--- a/templates/refs.html
+++ b/templates/refs.html
@@ -2,32 +2,39 @@
<html>
{{ template "head" . }}
- <header>
- <h1>{{ .meta.Title }}</h1>
- <h2>{{ .meta.Description }}</h2>
- </header>
+ {{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
- <h3>branches</h3>
{{ $name := .name }}
+ <h3>branches</h3>
+ <div class="refs">
{{ range .branches }}
- <p>
- <strong>{{ .Name.Short }}</strong>
- <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
- <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
- </p>
+ <div>
+ <strong>{{ .Name.Short }}</strong>
+ </div>
+ <div>
+ <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>
+ </div>
+ <div>
<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>