diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-13 12:02:48 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-13 12:02:48 +0800 |
commit | cd0513679c50304587126be1bb5322fd968b8a09 (patch) | |
tree | 808450fc8652137f95f5cd5511b33c3f27ee98f3 /templates/repo_tree_dir.html.tmpl | |
parent | style.css: Wider title-row specification (diff) | |
download | forge-cd0513679c50304587126be1bb5322fd968b8a09.tar.gz forge-cd0513679c50304587126be1bb5322fd968b8a09.tar.zst forge-cd0513679c50304587126be1bb5322fd968b8a09.zip |
repo_{raw,tree}_dir: Only display "on $ref" if necessary
Diffstat (limited to 'templates/repo_tree_dir.html.tmpl')
-rw-r--r-- | templates/repo_tree_dir.html.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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> |