1 {% extends '@RapsysTree/_base.html.twig' %}
3 {% if album is defined and album %}
7 {% for breadcrumb in album.breadcrumbs %}
8 <a href="{{ breadcrumb.link }}">{{ breadcrumb.name }}</a>
11 {% if album.elements is defined and album.elements %}
13 {% if album.elements is defined and album.elements %}
14 {% for eid, element in album.elements %}
15 <li><a href="{{ element.link }}">{{ element.name }}</a></li>
22 {% if ( album.directories is defined and album.directories ) or ( album.files is defined and album.files ) %}
24 {% if album.directories is defined and album.directories %}
25 {% for name, link in album.directories %}
26 <li><a href="{{ link }}">{{ name }}</a></li>
29 {% if album.files is defined and album.files %}
30 {% for name, infos in album.files %}
31 <li><a href="{{ infos.link }}">{{ name }}</a></li>
36 {% if album.file is defined and album.file %}
38 <dt>{% trans %}Size{% endtrans %}</dt>
39 <dd title="{{ album.file.size }}">{{ album.file.intlsize }} {{ album.file.intlunit }}</dd>
42 <dt>{% trans %}Mime type{% endtrans %}</dt>
43 <dd>{{ album.file.mimetype }}</dd>
45 {% if album.file.thumb is defined and album.file.thumb %}
47 <dt>{% trans %}Thumb{% endtrans %}</dt>
49 <a href=""><img src="{{ album.file.thumb.src }}" alt="{{ album.file.name }}" width="{{ album.file.thumb.width }}" height="{{ album.file.thumb.height }}" /></a>
56 {# TODO: XXX: add next, prev and parent links ? #}