diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 10:38:49 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 10:38:49 +0800 |
commit | 8be70d1b7744aa120a0bd18552ec3cd09c972827 (patch) | |
tree | a8227cf29d4a04f99b2d50fa58f37d2f38865d96 /templates | |
parent | repo_index: Add anchors to filenames in the tree listing (diff) | |
download | forge-8be70d1b7744aa120a0bd18552ec3cd09c972827.tar.gz forge-8be70d1b7744aa120a0bd18552ec3cd09c972827.tar.zst forge-8be70d1b7744aa120a0bd18552ec3cd09c972827.zip |
repo_index: Add / to directories in name listings
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_index.html | 2 |
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 }} |