diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
commit | e347064abe3ce4c90fbad23d36e5d61a149e2389 (patch) | |
tree | b587b82f918800b6ea457ece60d778b39a92dbe1 /templates/repo_tree_file.html.tmpl | |
parent | README.md: Add details in features supported by git repos (diff) | |
download | forge-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.tmpl | 2 |
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> |