aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 23:55:11 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 23:55:11 +0800
commit647efbfcb4659ca5585955455206053cbb3cbe5f (patch)
treebaafe4b216ebc8c09722dae6d4b2a4711880ce63 /templates
parentTODO: Remove (diff)
downloadforge-647efbfcb4659ca5585955455206053cbb3cbe5f.tar.gz
forge-647efbfcb4659ca5585955455206053cbb3cbe5f.tar.zst
forge-647efbfcb4659ca5585955455206053cbb3cbe5f.zip
repo/index: Remove toggle boxes
They were just an experiment and are imo quite unnecessary. Also the README doesn't have a border any more, hopefully it's quite obvious that's a README.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_index.tmpl16
1 files changed, 4 insertions, 12 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl
index 6db8e0b..5f3107b 100644
--- a/templates/repo_index.tmpl
+++ b/templates/repo_index.tmpl
@@ -38,11 +38,10 @@
</p>
</div>
<div class="padding-wrapper scroll">
- <input id="toggle-table-recent-commits" type="checkbox" class="toggle-table-off" />
<table id="recent-commits" class="wide">
<thead>
<tr class="title-row">
- <th colspan="3"><label for="toggle-table-recent-commits">Recent commits (<a href="log/{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">see all</a>)</label></th>
+ <th colspan="3">Recent commits (<a href="log/{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">see all</a>)</th>
</tr>
</thead>
<tbody>
@@ -61,11 +60,10 @@
</table>
</div>
<div class="padding-wrapper scroll">
- <input id="toggle-table-file-tree" type="checkbox" class="toggle-table-off" />
<table id="file-tree" class="wide">
<thead>
<tr class="title-row">
- <th colspan="3"><label for="toggle-table-file-tree">/{{ if .ref_name }} on {{ .ref_name }}{{ end }}</label></th>
+ <th colspan="3">/{{ if .ref_name }} on {{ .ref_name }}{{ end }}</th>
</tr>
</thead>
<tbody>
@@ -81,14 +79,8 @@
</tbody>
</table>
</div>
- <div class="padding-wrapper">
- <div class="toggle-off-wrapper">
- <input type="checkbox" id="toggle-readme" class="toggle-off-toggle" />
- <label for="toggle-readme" class="toggle-off-header centering"><div>{{ .readme_filename }}</div></label>
- <div class="toggle-off-content pad scroll" id="readme">
- {{ .readme }}
- </div>
- </div>
+ <div class="padding-wrapper" id="readme">
+ {{ .readme }}
</div>
<footer>
{{ template "footer" . }}