aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.html
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 10:38:49 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 10:38:49 +0800
commit8be70d1b7744aa120a0bd18552ec3cd09c972827 (patch)
treea8227cf29d4a04f99b2d50fa58f37d2f38865d96 /templates/repo_index.html
parentrepo_index: Add anchors to filenames in the tree listing (diff)
downloadforge-8be70d1b7744aa120a0bd18552ec3cd09c972827.tar.gz
forge-8be70d1b7744aa120a0bd18552ec3cd09c972827.tar.zst
forge-8be70d1b7744aa120a0bd18552ec3cd09c972827.zip
repo_index: Add / to directories in name listings
Diffstat (limited to '')
-rw-r--r--templates/repo_index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo_index.html b/templates/repo_index.html
index cf1326f..13ac023 100644
--- a/templates/repo_index.html
+++ b/templates/repo_index.html
@@ -46,7 +46,7 @@
{{- range .files }}
<tr>
<td class="file-mode">{{ .Mode }}</td>
-<td class="file-name"><a href="tree/{{ $ref }}/{{ .Name }}">{{ .Name }}</a></td>
+<td class="file-name"><a href="tree/{{ $ref }}/{{ .Name }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td>
<td class="file-size">{{ .Size }}</td>
</tr>
{{- end }}