diff options
author | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
commit | 7386392b8cd08e73e4f5fa6080e8f4fcf20831f6 (patch) | |
tree | 73330ee296f398b7720312a942bc9d524ece9857 /templates/refs.html | |
parent | templates/file.html: Remove line numbers (diff) | |
download | legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.tar.gz legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.tar.zst legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.zip |
Some more HTML sanities
Diffstat (limited to 'templates/refs.html')
-rw-r--r-- | templates/refs.html | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/templates/refs.html b/templates/refs.html index f121d3e..0138791 100644 --- a/templates/refs.html +++ b/templates/refs.html @@ -1,14 +1,13 @@ {{ define "refs" }} <!DOCTYPE html> <html> -{{ template "head" . }} - - {{ template "repoheader" . }} + {{ template "head" . }} <body> + {{ template "repoheader" . }} {{ template "nav" . }} <main> {{ $name := .name }} - <h3>branches</h3> + <h3>Branches</h3> <div class="refs"> {{ range .branches }} <div> @@ -20,20 +19,20 @@ {{ 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> - <a href="/{{ $name }}/archive/{{ .Name }}.tar.gz">tar.gz</a> - {{ if .Message }} - <pre>{{ .Message }}</pre> - </div> - {{ end }} - {{ end }} - </div> + <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> + <a href="/{{ $name }}/archive/{{ .Name }}.tar.gz">tar.gz</a> + {{ if .Message }} + <pre>{{ .Message }}</pre> + </div> + {{ end }} + {{ end }} + </div> {{ end }} </main> </body> |