Lindenii Project Forge
Login
Commit info
IDbc9c88121d4e6c85b9b836c2f4fd6f47c069f6f6
AuthorRunxi Yu<me@runxiyu.org>
Author dateTue, 11 Feb 2025 12:39:17 +0800
CommitterRunxi Yu<me@runxiyu.org>
Committer dateTue, 11 Feb 2025 12:39:17 +0800
Actions
Get patch
repo_tree: Add link to raw
{{- define "repo_tree_file" -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{ template "head_common" . }}
		<link rel="stylesheet" href="/static/chroma.css" />
		<title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} &ndash; Lindenii Forge</title>
	</head>
	<body class="repo-tree-file">
		<p>
			/{{ .path_spec }}
			/{{ .path_spec }} (<a href="/g/{{ .group_name }}/repos/{{ .repo_name }}/raw/{{ .ref }}/{{ .path_spec }}">raw</a>)
		</p>
		{{ .file_contents }}
		<footer>
			{{ template "footer" . }}
		</footer>
	</body>
</html>
{{- end -}}