legit/templates/refs.html

43 lines
932 B
HTML
Raw Permalink Normal View History

2022-12-12 16:28:47 +00:00
{{ define "refs" }}
<html>
{{ template "head" . }}
2022-12-18 05:44:38 +00:00
<title>
{{ .name }} &mdash; refs
</title>
2022-12-18 05:12:18 +00:00
{{ template "repoheader" . }}
2022-12-12 16:28:47 +00:00
<body>
{{ template "nav" . }}
<main>
{{ $name := .name }}
2022-12-18 05:12:18 +00:00
<h3>branches</h3>
<div class="refs">
2022-12-12 16:28:47 +00:00
{{ range .branches }}
2022-12-18 05:12:18 +00:00
<div>
<strong>{{ .Name.Short }}</strong>
<a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
</div>
2022-12-12 16:28:47 +00:00
{{ end }}
2022-12-18 05:12:18 +00:00
</div>
2022-12-12 16:28:47 +00:00
{{ if .tags }}
2022-12-12 16:43:19 +00:00
<h3>tags</h3>
2022-12-18 05:12:18 +00:00
<div class="refs">
2022-12-12 16:28:47 +00:00
{{ range .tags }}
2022-12-18 05:12:18 +00:00
<div>
2022-12-12 16:43:19 +00:00
<strong>{{ .Name }}</strong>
<a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name }}">log</a>
2022-12-24 09:41:48 +00:00
{{ if .Message }}
<pre>{{ .Message }}</pre>
2022-12-18 05:12:18 +00:00
</div>
2022-12-12 16:28:47 +00:00
{{ end }}
{{ end }}
2022-12-18 05:12:18 +00:00
</div>
2022-12-12 16:28:47 +00:00
{{ end }}
</main>
</body>
</html>
{{ end }}