legit/templates/refs.html
Iris Lightshard cd131c0629
update layout for refs page, add pgp signatures to tags and commits
only detailed commits have pgp sigs, not in the log to save bandwidth
2023-02-01 22:43:10 -07:00

52 lines
1.3 KiB
HTML

{{ define "refs" }}
<html>
{{ template "head" . }}
<title>
{{ .name }} &mdash; refs
</title>
{{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
{{ $name := .name }}
<h3>branches</h3>
<div class="refs branches">
{{ 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>
</div>
{{ end }}
</div>
{{ if .tags }}
<h3>tags</h3>
<div class="refs tags">
{{ 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 }}
</div>
{{ end }}
</main>
</body>
</html>
{{ end }}