aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 08:48:07 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 08:48:07 +0800
commite347064abe3ce4c90fbad23d36e5d61a149e2389 (patch)
treeb587b82f918800b6ea457ece60d778b39a92dbe1 /templates/repo_tree_file.html.tmpl
parentREADME.md: Add details in features supported by git repos (diff)
downloadforge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.gz
forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.zst
forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.zip
http_*: Refactor to reduce duplication
Diffstat (limited to '')
-rw-r--r--templates/repo_tree_file.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl
index 0bf9164..8eacd28 100644
--- a/templates/repo_tree_file.html.tmpl
+++ b/templates/repo_tree_file.html.tmpl
@@ -10,7 +10,7 @@
{{ template "header" . }}
<div class="padding">
<p>
- /{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if .ref }}?{{ .ref_type }}={{ .ref }}{{ end }}">raw</a>)
+ /{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">raw</a>)
</p>
{{ .file_contents }}
</div>