mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 10:00:01 +00:00
Reformat
This commit is contained in:
parent
dd1f1b6834
commit
bd1a9f5cf4
|
@ -86,24 +86,17 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{%- for key, value in files.items() recursive %}
|
{%- for key, value in files.items() recursive %}
|
||||||
|
<tr>
|
||||||
{%- if value is iterable %}
|
{%- if value is iterable %}
|
||||||
{%- if loop.depth0 is greaterthan 0 %}
|
<td colspan="2" {% if loop.depth0 is greaterthan 0 %}style="padding-left: {{ loop.depth0 * 20 }}px"{% endif %}>
|
||||||
<tr>
|
<i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
|
||||||
<td colspan="2" style="padding-left: {{ loop.depth0 * 20 }}px">
|
{{ loop(value.items()) }}
|
||||||
{%- else %}
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
{%- endif %}
|
|
||||||
<i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
|
|
||||||
{{ loop(value.items()) }}
|
|
||||||
</tr>
|
|
||||||
{%- else %}
|
{%- else %}
|
||||||
<tr>
|
<td style="padding-left: {{ loop.depth0 * 20 }}px">
|
||||||
<td style="padding-left: {{ loop.depth0 * 20 }}px">
|
<i class="glyphicon glyphicon-file"></i> {{ key }}</td>
|
||||||
<i class="glyphicon glyphicon-file"></i> {{ key }}</td>
|
<td class="col-md-2">{{ value | filesizeformat(True) }}</td>
|
||||||
<td class="col-md-2">{{ value | filesizeformat(True) }}</td>
|
|
||||||
</tr>
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
</tr>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue