From cd0513679c50304587126be1bb5322fd968b8a09 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 12:02:48 +0800 Subject: repo_{raw,tree}_dir: Only display "on $ref" if necessary --- templates/repo_tree_dir.html.tmpl | 2 +- 1 file changed, 1 insertion(+), 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 4386637..d7fbb10 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -12,7 +12,7 @@ - /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} + /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref }} on {{ .ref }}{{ end }} -- cgit v1.2.3