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 | 61fcfac541fe2271c052771b1c33b7511efb75bb (patch) | |
tree | 70b4eb7fdf5b2d7bb17c09c9a5060b2ad79813b6 /templates/refs.html | |
parent | Add myself to LICENSE (diff) | |
download | legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.gz legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.zst legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.zip |
Indent the HTML with tabs
Diffstat (limited to 'templates/refs.html')
-rw-r--r-- | templates/refs.html | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/templates/refs.html b/templates/refs.html index f0e591f..f121d3e 100644 --- a/templates/refs.html +++ b/templates/refs.html @@ -3,39 +3,39 @@ <html> {{ template "head" . }} - {{ template "repoheader" . }} - <body> - {{ template "nav" . }} - <main> - {{ $name := .name }} - <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> - <a href="/{{ $name }}/archive/{{ .Name.Short }}.tar.gz">tar.gz</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> - <a href="/{{ $name }}/archive/{{ .Name }}.tar.gz">tar.gz</a> - {{ if .Message }} - <pre>{{ .Message }}</pre> - </div> - {{ end }} - {{ end }} - </div> - {{ end }} - </main> - </body> + {{ template "repoheader" . }} + <body> + {{ template "nav" . }} + <main> + {{ $name := .name }} + <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> + <a href="/{{ $name }}/archive/{{ .Name.Short }}.tar.gz">tar.gz</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> + <a href="/{{ $name }}/archive/{{ .Name }}.tar.gz">tar.gz</a> + {{ if .Message }} + <pre>{{ .Message }}</pre> + </div> + {{ end }} + {{ end }} + </div> + {{ end }} + </main> + </body> </html> {{ end }} |