Lindenii Project Forge
Login
Commit info
IDbcccf57160fb87925f311578ce5ad8a66c6a29de
AuthorRunxi Yu<me@runxiyu.org>
Author dateTue, 11 Feb 2025 20:02:55 +0800
CommitterRunxi Yu<me@runxiyu.org>
Committer dateTue, 11 Feb 2025 20:02:55 +0800
Actions
Get patch
*.html: Fix body class
{{- define "group_repos" -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{ template "head_common" . }}
		<title>Repos in {{ .group_name }} &ndash; Lindenii Forge</title>
	</head>
	<body class="group-index">
	<body class="group-repos">
		<div class="padding-wrapper">
			<h1>
			Repos in {{ .group_name }}
			</h1>
			<ul>
				{{- range .repos }}
					<li>
						<a href="{{ . }}/">{{ . }}</a>
					</li>
				{{- end }}
			</ul>
		</div>
		<footer>
			{{ template "footer" . }}
		</footer>
	</body>
</html>
{{- end -}}
{{- define "repo_log" -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{ template "head_common" . }}
		<title>Log of {{ .group_name }}/repos/{{ .repo_name }} &ndash; Lindenii Forge</title>
	</head>
	<body class="repo-index">
	<body class="repo-log">
		<table id="commits" class="wide">
			<thead>
				<tr class="title-row">
					<th colspan="4">Commits on {{ .ref }}</th>
				</tr>
				<tr>
					<th scope="col">ID</th>
					<th scope="col">Title</th>
					<th scope="col">Author</th>
					<th scope="col">Time</th>
				</tr>
			</thead>
			<tbody>
				{{- range .commits }}
					<tr>
						<td class="commit-id"><a href="../../commit/{{ .ID }}">{{ .ID }}</a></td>
						<td class="commit-title">{{ .Message | first_line }}</td>
						<td class="commit-author">
							<a class="email-name" href="mailto:{{ .Author.Email }}">{{ .Author.Name }}</a>
						</td>
						<td class="commit-time">
							{{ .Author.When.Format "2006-01-02 15:04:05 -0700" }}
						</td>
					</tr>
				{{- end }}
			</tbody>
		</table>
		<footer>
			{{ template "footer" . }}
		</footer>
	</body>
</html>
{{- end -}}
{{- define "repo_raw_dir" -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{ template "head_common" . }}
		<title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} &ndash; Lindenii Forge</title>
	</head>
	<body class="repo-tree-dir">
	<body class="repo-raw-dir">
		<div class="padding-wrapper scroll">
			<table id="file-tree" class="wide">
				<thead>
					<tr class="title-row">
						<th colspan="3">
							(Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }}
						</th>
					</tr>
					<tr>
						<th scope="col">Mode</th>
						<th scope="col">Name</th>
						<th scope="col">Size</th>
					</tr>
				</thead>
				<tbody>
					{{- $path_spec := .path_spec }}
					{{- range .files }}
						<tr>
							<td class="file-mode">{{ .Mode }}</td>
							<td class="file-name"><a href="{{ .Name }}{{ if not .Is_file }}/{{ end }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td>
							<td class="file-size">{{ .Size }}</td>
						</tr>
					{{- end }}
				</tbody>
			</table>
		</div>
		<div class="padding-wrapper">
			<div id="refs">
			</div>
		</div>
		<footer>
			{{ template "footer" . }}
		</footer>
	</body>
</html>
{{- end -}}