put file list inside details tag

This commit is contained in:
xenofem 2022-05-24 17:35:49 -04:00
parent 62e6d64253
commit 52158d25e9
2 changed files with 17 additions and 14 deletions

View file

@ -175,8 +175,9 @@ tr.unavailable td.file_download {
margin-right: auto; margin-right: auto;
} }
#download_contents h3 { #download_contents summary {
margin-bottom: 0; font-size: 24px;
font-weight: bold;
} }
#download_contents table { #download_contents table {

View file

@ -26,7 +26,8 @@
{% match file.contents %} {% match file.contents %}
{% when Some with (files) %} {% when Some with (files) %}
<div id="download_contents" class="section"> <div id="download_contents" class="section">
<h3>Contents</h3> <details>
<summary>Show file list</summary>
<table><tbody> <table><tbody>
{% let offsets = offsets.as_ref().unwrap() %} {% let offsets = offsets.as_ref().unwrap() %}
{% for f in files %} {% for f in files %}
@ -38,6 +39,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
</tbody></table> </tbody></table>
</details>
</div> </div>
{% else %} {% else %}
{% endmatch %} {% endmatch %}