{# type: explorer:Explorer #} {% macro explorer_table(explorer) %}
{% set s = explorer.sorted %} {# explorer.path:list[FileDisplay] #} {% for p in explorer.directory_listing %} {% endfor %}
Type{{s('type')}}
Name{{s('name')}}
Size{{s('size')}}
Modified{{s('time')}}
{{p.icon|safe}} {{p.name}} {{p.size|human}} {{p.mtime.strftime('%Y-%m-%d %H:%M:%S')}}
{% endmacro %} {# type: mountpoints:MountPoints, explorer:Explorer #} {% macro explorer(mountpoints, explorer) %}

Mount Points

{% set mp = explorer.mountpoint %} {% for m in mountpoints.mountpoints %} {% set active = m.label == mp %} {% endfor %}
{{ explorer_table(explorer) }}
{% endmacro %}