24 lines
579 B
Cheetah
24 lines
579 B
Cheetah
|
{% if #directories ~= 0 then %}
|
||
|
<ul class="directories">
|
||
|
{% for _, dir in ipairs(directories) do %}
|
||
|
<details
|
||
|
hx-trigger="toggle once"
|
||
|
hx-get="/dirlist?dirpath={%& dir.path %}"
|
||
|
hx-target="find .details-children">
|
||
|
<summary>{%& dir.name %}</summary>
|
||
|
<div class="details-children"></div>
|
||
|
</details>
|
||
|
{% end %}
|
||
|
</ul>
|
||
|
{% end %}
|
||
|
{% if #files ~= 0 then %}
|
||
|
<ul class="files">
|
||
|
{% for _, file in ipairs(files) do %}
|
||
|
<li><label>
|
||
|
<input type="radio" name="filename-option" value="{%& file.path %}">
|
||
|
{%& file.name %}
|
||
|
</label></li>
|
||
|
{% end %}
|
||
|
</ul>
|
||
|
{% end %}
|