aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 12:02:48 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 12:02:48 +0800
commitcd0513679c50304587126be1bb5322fd968b8a09 (patch)
tree808450fc8652137f95f5cd5511b33c3f27ee98f3 /templates
parentstyle.css: Wider title-row specification (diff)
downloadforge-cd0513679c50304587126be1bb5322fd968b8a09.tar.gz
forge-cd0513679c50304587126be1bb5322fd968b8a09.tar.zst
forge-cd0513679c50304587126be1bb5322fd968b8a09.zip
repo_{raw,tree}_dir: Only display "on $ref" if necessary
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_raw_dir.html.tmpl2
-rw-r--r--templates/repo_tree_dir.html.tmpl2
2 files changed, 2 insertions, 2 deletions
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 @@
<thead>
<tr class="title-row">
<th colspan="3">
- (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }}
+ (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref }} on {{ .ref }}{{ end }}
</th>
</tr>
</thead>
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 @@
<thead>
<tr class="title-row">
<th colspan="3">
- /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }}
+ /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref }} on {{ .ref }}{{ end }}
</th>
</tr>
</thead>