aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo_tree_file.html')
-rw-r--r--templates/repo_tree_file.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/repo_tree_file.html b/templates/repo_tree_file.html
new file mode 100644
index 0000000..0df9216
--- /dev/null
+++ b/templates/repo_tree_file.html
@@ -0,0 +1,15 @@
+{{- define "repo_tree_file" -}}
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="/static/style.css" />
+<title>{{ .project_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title>
+</head>
+<body class="repo-index">
+<p>
+/{{ .path_spec }}
+</p>
+<pre>{{ .file_contents }}</pre>
+</body>
+</html>
+{{- end -}}