aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_dir.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-06 22:30:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-06 22:31:12 +0800
commitc37d627b529fc8d03328fc77efc57b19ecd0e8f0 (patch)
treed3e532cf48afd5edd819027301891d2923ea43e3 /templates/repo_tree_dir.tmpl
parentUpdate hosted forge links (diff)
downloadforge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.tar.gz
forge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.tar.zst
forge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.zip
*: Add column headers to tables
Diffstat (limited to 'templates/repo_tree_dir.tmpl')
-rw-r--r--templates/repo_tree_dir.tmpl26
1 files changed, 9 insertions, 17 deletions
diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl
index ab9788b..a62139c 100644
--- a/templates/repo_tree_dir.tmpl
+++ b/templates/repo_tree_dir.tmpl
@@ -18,6 +18,11 @@
<th colspan="3">
/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }}
</th>
+ <tr>
+ <th scope="col">Mode</th>
+ <th scope="col">Filename</th>
+ <th scope="col">Size</th>
+ </tr>
</tr>
</thead>
<tbody>
@@ -38,24 +43,11 @@
<div id="refs">
</div>
</div>
- <div class="padding-wrapper">
- {{ if .readme }}
- <table class="wide">
- <thead>
- <tr class="title-row">
- <th>{{ .readme_filename }}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td id="readme">
- {{ .readme -}}
- </td>
- </tr>
- </tbody>
- </table>
- {{ end }}
+ {{ if .readme }}
+ <div class="padding-wrapper" id="readme">
+ {{ .readme -}}
</div>
+ {{ end }}
<footer>
{{ template "footer" . }}
</footer>