From 0adba4532cb15fe139378c574473fae888cded09 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 12:36:50 +0800 Subject: repo_raw: Serve raw files --- templates/repo_raw_dir.html.tmpl | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 templates/repo_raw_dir.html.tmpl (limited to 'templates/repo_raw_dir.html.tmpl') diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl new file mode 100644 index 0000000..d2a280c --- /dev/null +++ b/templates/repo_raw_dir.html.tmpl @@ -0,0 +1,44 @@ +{{- define "repo_raw_dir" -}} + + + + {{ template "head_common" . }} + {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge + + +
+ + + + + + + + + + + + + {{- $path_spec := .path_spec }} + {{- range .files }} + + + + + + {{- end }} + +
+ (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} +
ModeNameSize
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
+
+
+
+
+
+ + + +{{- end -}} -- cgit v1.2.3