diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 10:42:18 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 10:42:18 +0530 |
commit | e4d12fc667c9830dd5f08f827b2a70adff58a09b (patch) | |
tree | c052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/refs.html | |
parent | 3e6a720154b70a9882af14399548e494b1d0089f (diff) | |
download | legit-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.html | 27 |
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> |