aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-11 12:39:17 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-11 12:39:17 +0800
commitbc9c88121d4e6c85b9b836c2f4fd6f47c069f6f6 (patch)
tree35470ad1d310f1bd91fa74e79f72825334230bf6
parentrepo_raw: Serve raw files (diff)
downloadforge-bc9c88121d4e6c85b9b836c2f4fd6f47c069f6f6.tar.gz
forge-bc9c88121d4e6c85b9b836c2f4fd6f47c069f6f6.tar.zst
forge-bc9c88121d4e6c85b9b836c2f4fd6f47c069f6f6.zip
repo_tree: Add link to raw
-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 2691608..7ddfce1 100644
--- a/templates/repo_tree_file.html.tmpl
+++ b/templates/repo_tree_file.html.tmpl
@@ -8,7 +8,7 @@
</head>
<body class="repo-tree-file">
<p>
- /{{ .path_spec }}
+ /{{ .path_spec }} (<a href="/g/{{ .group_name }}/repos/{{ .repo_name }}/raw/{{ .ref }}/{{ .path_spec }}">raw</a>)
</p>
{{ .file_contents }}
<footer>