{% extends '@RapsysTree/_base.html.twig' %}
{% block content %}
{% if element is defined and element %}
{% if ( element.directories is defined and element.directories ) or ( element.files is defined and element.files ) %}
{% if element.directories is defined and element.directories %}
{% for name, link in element.directories %}
- {{ name }}
{% endfor %}
{% endif %}
{% if element.files is defined and element.files %}
{% for name, infos in element.files %}
- {{ name }}
{% endfor %}
{% endif %}
{% endif %}
{% if element.file is defined and element.file %}
- {% trans %}Size{% endtrans %}
- {{ element.file.intlsize }} {{ element.file.intlunit }}
- {% trans %}Mime type{% endtrans %}
- {{ element.file.mimetype }}
{% if element.file.preview is defined and element.file.preview %}
- {% trans %}Preview{% endtrans %}
- element.file.preview
{% endif %}
{% endif %}
{# TODO: XXX: add next, prev and parent links ? #}
{% endif %}
{% endblock %}