{# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. #} {{ title }} {% set paths_length = paths | length -%}
{% set dir_length = dirs | length -%} {% set file_length = files | length -%} {{ dir_length }} directories {{ file_length }} files
{% for dir in dirs -%} {% endfor -%} {% for file in files -%} {% endfor -%}
Name Size Modified
Go up - -
{{ dir.name }} -
{{ file.name }} {{ file.size | filesizeformat | replace(from="KB", to="KiB") | replace(from="MB", to="MiB") | replace(from="GB", to="GiB") | replace(from="TB", to="TiB") | replace(from="PB", to="PiB") | replace(from="EB", to="EiB") | replace(from="ZB", to="ZiB") | replace(from="YB", to="YiB") }}
{% if dir_length + file_length == 0 -%}
Nothing here
{% endif -%}