diff options
Diffstat (limited to 'templates/repo_tree_file.tmpl')
-rw-r--r-- | templates/repo_tree_file.tmpl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl new file mode 100644 index 0000000..7d5069c --- /dev/null +++ b/templates/repo_tree_file.tmpl @@ -0,0 +1,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 }} – {{ .global.forge_title }}</title> + </head> + <body class="repo-tree-file"> + {{ template "header" . }} + <div class="padding"> + <p> + /{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">raw</a>) + </p> + {{ .file_contents }} + </div> + <footer> + {{ template "footer" . }} + </footer> + </body> +</html> +{{- end -}} |