1 {% extends '@RapsysTree/_base.html.twig' %}
3 {% if element is defined and element %}
7 {% for breadcrumb in element.breadcrumbs %}
8 <a href="{{ breadcrumb.link }}">{{ breadcrumb.name }}</a>
13 {% if ( element.directories is defined and element.directories ) or ( element.files is defined and element.files ) %}
15 {% if element.directories is defined and element.directories %}
16 {% for name, link in element.directories %}
17 <li><a href="{{ link }}">{{ name }}</a></li>
20 {% if element.files is defined and element.files %}
21 {% for name, infos in element.files %}
22 <li><a href="{{ infos.link }}">{{ name }}</a></li>
27 {% if element.file is defined and element.file %}
29 <dt>{% trans %}Size{% endtrans %}</dt>
30 <dd title="{{ element.file.size }}">{{ element.file.intlsize }} {{ element.file.intlunit }}</dd>
33 <dt>{% trans %}Mime type{% endtrans %}</dt>
34 <dd>{{ element.file.mimetype }}</dd>
36 {% if element.file.preview is defined and element.file.preview %}
38 <dt>{% trans %}Preview{% endtrans %}</dt>
39 <dd>element.file.preview</dd>
45 {# TODO: XXX: add next, prev and parent links ? #}