From 9a73af056287ad19881667c88c687e2864cfa363 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 10:56:30 +0800 Subject: repo_tree: Display files too --- templates/repo_tree_file.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/repo_tree_file.html (limited to 'templates/repo_tree_file.html') 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" -}} + + + + +{{ .project_name }}/repos/{{ .repo_name }}/{{ .path_spec }} + + +

+/{{ .path_spec }} +

+
{{ .file_contents }}
+ + +{{- end -}} -- cgit v1.2.3