From d5416d850c9b697bc8fb189841e1c1e622494f5e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Feb 2025 00:32:39 +0800 Subject: templates: *.html.tmpl -> *.tmpl --- templates/repo_tree_dir.tmpl | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 templates/repo_tree_dir.tmpl (limited to 'templates/repo_tree_dir.tmpl') diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl new file mode 100644 index 0000000..5e0fdcc --- /dev/null +++ b/templates/repo_tree_dir.tmpl @@ -0,0 +1,60 @@ +{{- define "repo_tree_dir" -}} + + + + {{ template "head_common" . }} + {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – {{ .global.forge_title }} + + + {{ template "header" . }} +
+ + + + + + + + {{- $path_spec := .path_spec }} + {{- $ref := .ref_name }} + {{- $ref_type := .ref_type }} + {{- range .files }} + + + + + + {{- end }} + +
+ /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }} +
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
+
+
+
+
+
+
+ {{ if .readme }} + + + + + + + + + + + +
{{ .readme_filename }}
+ {{ .readme -}} +
+ {{ end }} +
+ + + +{{- end -}} -- cgit v1.2.3