From cd0513679c50304587126be1bb5322fd968b8a09 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 12:02:48 +0800 Subject: [PATCH] repo_{raw,tree}_dir: Only display "on $ref" if necessary --- templates/repo_raw_dir.html.tmpl | 2 +- templates/repo_tree_dir.html.tmpl | 2 +- diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl index 6b1da0dfd15a6c75cb63e04fc0e2674ec2b06b76..a264d243ae38e2619d1b5a1ecec5c9774a37b75d 100644 --- a/templates/repo_raw_dir.html.tmpl +++ b/templates/repo_raw_dir.html.tmpl @@ -12,7 +12,7 @@ diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl index 4386637ae282590fac1125a457bb273c875ebaa5..d7fbb10d8032f757cf8afa1216c4f1be8a6f07e1 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_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 }}
-- 2.48.1
- /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} + /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref }} on {{ .ref }}{{ end }}