From 9b20ef637095413a8e7bde6701b8ad2379b4e7aa Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 12:06:36 +0800 Subject: repo_*_{dir,file}: Add ref params if not head --- templates/repo_tree_dir.html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/repo_tree_dir.html.tmpl') diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl index d7fbb10..5e56dc9 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -18,10 +18,12 @@ {{- $path_spec := .path_spec }} + {{- $ref := .ref }} + {{- $ref_type := .ref_type }} {{- range .files }} {{ .Mode }} - {{ .Name }}{{ if not .Is_file }}/{{ end }} + {{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }} {{- end }} -- cgit v1.2.3