diff options
author | cel 🌸 <cel@blos.sm> | 2024-02-20 00:24:38 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-02-20 00:24:38 +0000 |
commit | f4ff8fe6eb20ab5b557d7beac095959890e126e8 (patch) | |
tree | 41e3c708a0c5c3cb4a318ebcd7739e3f2dc74552 /templates/refs.html | |
parent | ac0983a89692534daa3d36dba528461b5bb32dbc (diff) | |
download | legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.tar.gz legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.tar.bz2 legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.zip |
fix routes
Diffstat (limited to '')
-rw-r--r-- | templates/refs.html | 48 |
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 |