aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.html
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 08:00:44 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 08:00:44 +0800
commit6cb469d0f09abed57004165a79a16156eb09cd2d (patch)
tree884eb9a1bdf47959a397697f818917682138a0c5 /templates/repo_index.html
parentrepo_index.html: Remove unnecessary whitespace in output (diff)
downloadforge-6cb469d0f09abed57004165a79a16156eb09cd2d.tar.gz
forge-6cb469d0f09abed57004165a79a16156eb09cd2d.tar.zst
forge-6cb469d0f09abed57004165a79a16156eb09cd2d.zip
repo_index: Add file list
Diffstat (limited to '')
-rw-r--r--templates/repo_index.html19
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">