blob: 21eb5f60c14f4da0a68e0bea4a313f576c5ce9e8 (
plain) (
blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
{{/*
SPDX-License-Identifier: AGPL-3.0-only
SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/}}
{{- define "repo_index" -}}
{{- $root := . -}}
<!DOCTYPE html>
<html lang="en">
<head>
{{- template "head_common" . -}}
<title>{{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}}</title>
</head>
<body class="repo-index">
{{- template "header" . -}}
<div class="repo-header">
<h2>{{- .repo_name -}}</h2>
<ul class="nav-tabs-standalone">
<li class="nav-item">
<a class="nav-link active" href="./{{- template "ref_query" $root -}}">Summary</a>
</li>
<li class="nav-item">
<a class="nav-link" href="tree/{{- template "ref_query" $root -}}">Tree</a>
</li>
<li class="nav-item">
<a class="nav-link" href="log/{{- template "ref_query" $root -}}">Log</a>
</li>
<li class="nav-item">
<a class="nav-link" href="branches/">Branches</a>
</li>
<li class="nav-item">
<a class="nav-link" href="tags/">Tags</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contrib/">Merge requests</a>
</li>
<li class="nav-item">
<a class="nav-link" href="settings/">Settings</a>
</li>
</ul>
</div>
<div class="repo-header-extension">
<div class="repo-header-extension-content">
{{- .repo_description -}}
</div>
</div>
{{- if .notes -}}
<div id="notes">Notes</div>
<ul>
{{- range .notes -}}<li>{{- . -}}</li>{{- end -}}
</ul>
</div>
{{- end -}}
<p class="readingwidth"><code>{{- .ssh_clone_url -}}</code></p>
{{- if .commits -}}
<div class="commit-list-small">
{{- range .commits -}}
<div class="event">
<div>
<a href="commit/{{- .Hash -}}" title="{{- .Hash -}}" rel="nofollow">
{{- .Hash | printf "%.8s" -}}
</a>
— <a href="mailto:{{- .Email -}}">{{- .Author -}}</a>
<small class="pull-right">
<span title="{{- .Date -}}">{{- .Date -}}</span>
</small>
</div>
<pre class="commit">{{- .Message | first_line -}}</pre>
</div>
{{- end -}}
{{- if dereference_error .commits_err -}}
<div class="commit-error">
Error while obtaining commit log: {{ .commits_err }}
</div>
{{- end -}}
</div>
{{- end -}}
{{- if .readme -}}
<div class="padding-wrapper" id="readme">
{{- .readme -}}
</div>
{{- end -}}
<footer>
{{- template "footer" . -}}
</footer>
</body>
</html>
{{- end -}}
|