diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:00:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:00:44 +0800 |
commit | 6cb469d0f09abed57004165a79a16156eb09cd2d (patch) | |
tree | 884eb9a1bdf47959a397697f818917682138a0c5 /templates | |
parent | repo_index.html: Remove unnecessary whitespace in output (diff) | |
download | forge-6cb469d0f09abed57004165a79a16156eb09cd2d.tar.gz forge-6cb469d0f09abed57004165a79a16156eb09cd2d.tar.zst forge-6cb469d0f09abed57004165a79a16156eb09cd2d.zip |
repo_index: Add file list
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_index.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/repo_index.html b/templates/repo_index.html index 4241356..13bac72 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -30,6 +30,25 @@ {{- end }} </tbody> </table> +<table id="file-tree"> +<thead> +<tr> +<!--th scope="col">Blob/Tree ID</th--> +<th scope="col">Mode</th> +<th scope="col">Name</th> +<th scope="col">Size</th> +</tr> +</thead> +<tbody> +{{- range .files }} +<tr> +<td class="file-mode">{{ .Mode }}</td> +<td class="file-name">{{ .Name }}</td> +<td class="file-size">{{ .Size }}</td> +</tr> +{{- end }} +</tbody> +</table> <div id="refs"> </div> <div id="readme"> |