Reformat code some more

This commit is contained in:
sharkykh 2017-05-15 09:37:02 +03:00
parent bd1a9f5cf4
commit 6be5326f45
1 changed files with 8 additions and 8 deletions

View File

@ -86,17 +86,17 @@
</thead>
<tbody>
{%- for key, value in files.items() recursive %}
<tr>
<tr>
{%- if value is iterable %}
<td colspan="2" {% if loop.depth0 is greaterthan 0 %}style="padding-left: {{ loop.depth0 * 20 }}px"{% endif %}>
<i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
{{ loop(value.items()) }}
<td colspan="2" {% if loop.depth0 is greaterthan 0 %}style="padding-left: {{ loop.depth0 * 20 }}px"{% endif %}>
<i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
{{ loop(value.items()) }}
{%- else %}
<td style="padding-left: {{ loop.depth0 * 20 }}px">
<i class="glyphicon glyphicon-file"></i> {{ key }}</td>
<td class="col-md-2">{{ value | filesizeformat(True) }}</td>
<td style="padding-left: {{ loop.depth0 * 20 }}px">
<i class="glyphicon glyphicon-file"></i> {{ key }}</td>
<td class="col-md-2">{{ value | filesizeformat(True) }}</td>
{%- endif %}
</tr>
</tr>
{%- endfor %}
</table>
</div>