aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.html.tmpl
blob: 00547d2f6e0fe9158863c654df5ccfc658277899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{- 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">
		<header>
			{{ template "repo_header" . }}
		</header>
		<p>
			/{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if not (eq .ref_type "head") }}?{{ .ref_type }}={{ .ref }}{{ end }}">raw</a>)
		</p>
		{{ .file_contents }}
		<footer>
			{{ template "footer" . }}
		</footer>
	</body>
</html>
{{- end -}}