-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
<!--
Copyright 2025 Shota FUJI <pockawoooh@gmail.com>
SPDX-License-Identifier: MIT
-->
{{ define "repo-refs" -}}
<!DOCTYPE html>
<html lang="en">
<head>
{{ template "head" }}
<title>Refs - {{ .Meta.DisplayName }}</title>
<meta name="description" content="Git refs of {{ .Meta.DisplayName }}" />
</head>
<body>
<header>
<ol>
<li>
<a href="/">Top</a>
</li>
<li>
<a href="/{{ .Meta.DisplayName }}">{{ .Meta.DisplayName }}</a>
</li>
<li>
<a href="/{{ .Meta.DisplayName }}/refs">Refs</a>
</li>
</ol>
<span>{{ .Meta.DisplayName }}</span>
{{ if .Meta.Description -}}
<p>{{ .Meta.Description }}</p>
{{- end -}}
</header>
{{ template "repo-nav" . }}
<main>
{{- $meta := .Meta -}}
<h2>Branches</h2>
<ul>
{{- range .Branches }}
<li>
<span>{{ .Name.Short }}</span>
<div>
<a href="/{{ $meta.DisplayName }}/log/{{ .Name.Short }}">Commits</a>
<a href="/{{ $meta.DisplayName }}/tree/{{ .Name.Short }}">Files</a>
<a href="/{{ $meta.DisplayName }}/archive/{{ .Name.Short }}.tar.gz">Download archive</a>
</div>
</li>
{{ end -}}
</ul>
<h2>Tags</h2>
{{- if .Tags }}
<ul>
{{- range .Tags }}
<li>
<span>{{ .Name }}</span>
<div>
<a href="/{{ $meta.DisplayName }}/log/{{ .Name }}">Commits</a>
<a href="/{{ $meta.DisplayName }}/tree/{{ .Name }}">Files</a>
<a href="/{{ $meta.DisplayName }}/archive/{{ .Name }}.tar.gz">Download archive</a>
</div>
</li>
{{ end -}}
</ul>
{{- else -}}
<p>This repository has no tags.</p>
{{ end -}}
</main>
</body>
</html>
{{- end }}