legit/templates/refs.html

51 lines
1.3 KiB
HTML
Raw Normal View History

2022-12-12 16:28:47 +00:00
{{ define "refs" }}
<html>
{{ template "head" . }}
<body>
2023-02-04 16:34:21 +00:00
{{ template "repoheader" . }}
2022-12-12 16:28:47 +00:00
{{ template "nav" . }}
<main>
{{ $name := .name }}
2022-12-18 05:12:18 +00:00
<h3>branches</h3>
<div class="refs branches">
2022-12-12 16:28:47 +00:00
{{ range .branches }}
<div class="branch-entry">
<h4>{{ .Name.Short }}</h4>
<ul>
<li><a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a></li>
<li><a href="/{{ $name }}/log/{{ .Name.Short }}">log</a></li>
</ul>
2022-12-18 05:12:18 +00:00
</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>
<div class="refs tags">
2022-12-12 16:28:47 +00:00
{{ range .tags }}
<div class="tag-entry">
<h4>{{ .Name }}</h4>
<time>{{ .Tagger.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</time>
<ul>
<li><a href="/{{ $name }}/tree/{{ .Name }}/">browse</a></li>
<li><a href="/{{ $name }}/log/{{ .Name }}">log</a></li>
</ul>
{{ if .Message }}
<pre>{{ .Message }}</pre>
{{ end }}
{{ if .PGPSignature }}
<details><summary>PGP Signature</summary>
<pre>{{ .PGPSignature }}</pre>
</details>
{{ end }}
</div>
{{ end }}
2022-12-18 05:12:18 +00:00
</div>
2022-12-12 16:28:47 +00:00
{{ end }}
</main>
2023-02-04 16:34:21 +00:00
{{ template "footer" .meta }}
2022-12-12 16:28:47 +00:00
</body>
2023-02-04 16:34:21 +00:00
2022-12-12 16:28:47 +00:00
</html>
{{ end }}