aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-15 00:32:39 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-15 00:32:39 +0800
commitd5416d850c9b697bc8fb189841e1c1e622494f5e (patch)
treeb877df54a6fbef112b0d32796f514b66177c9976 /templates/repo_tree_file.html.tmpl
parentMakefile, resources.go: Add vendor directory to serve library source (diff)
downloadforge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.gz
forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.zst
forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.zip
templates: *.html.tmpl -> *.tmpl
Diffstat (limited to 'templates/repo_tree_file.html.tmpl')
-rw-r--r--templates/repo_tree_file.html.tmpl22
1 files changed, 0 insertions, 22 deletions
diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl
deleted file mode 100644
index 7d5069c..0000000
--- a/templates/repo_tree_file.html.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{{- 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; {{ .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 -}}