legit/templates/refs.html

47 lines
986 B
HTML
Raw 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>
</div>
<div>
<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>
2022-12-18 05:12:18 +00:00
</div>
<div>
2022-12-12 16:43:19 +00:00
<a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name }}">log</a>
2022-12-12 16:28:47 +00:00
{{ if .Message }}
2022-12-12 16:43:19 +00:00
<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 }}