aboutsummaryrefslogtreecommitdiff
path: root/templates/file.html
blob: de837a5edf3dd1384a37df290c63cda269696cd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "file" }}
<!DOCTYPE html>
<html>
	<head>
		{{ template "generichead" . }}
		<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .path }}</title>
	</head>
	<body>
		{{ template "repoheader" . }}
		{{ template "nav" . }}
		<main>
			<p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p>
			<div class="file-wrapper">
				<pre>{{- .content -}}</pre>
			</div>
		</main>
	</body>
</html>
{{ end }}