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_raw_dir.html.tmpl | 2 +- templates/repo_tree_dir.html.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl index 6b1da0d..a264d24 100644 --- a/templates/repo_raw_dir.html.tmpl +++ b/templates/repo_raw_dir.html.tmpl @@ -12,7 +12,7 @@ - (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} + (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref }} on {{ .ref }}{{ end }} 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