{% extends "base.html" %} {% block styles %} {% endblock %} {% block title %}/{{title}}{% endblock %} {% block body %} {% if let Some(parent_path) = title.parent() -%} Go up {%- endif %}
{% for entry in entries -%} {%- let thumbnail = entry.thumbnail.as_rich_or_alt() -%} {# Note: JS changes the data attributes to camelCase #} {%- endfor %}
- Name - Last Modified - Size -
{%- match thumbnail -%} {%- when Either::Left with (rich) -%} Rich thumbnail {%- when Either::Right with (alt) -%} {%- endmatch -%} {{entry.name}} {{entry.modified_time.format("%Y-%m-%d %H:%M:%S")}} {%- if let Some(size) = entry.size -%} {%- if size.should_format -%} {{size.number|filesizeformat}} {%- else -%} {{size.number}} {%- endif -%} {%- endif -%}
/
{% endblock %} {% block scripts %} {% endblock %}