X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/514fae21154eeaacc2e1451bda48c0308dcc15a7..d3798da0c79794f2355b3002b36faf7e8e8fc95e:/templates/album.html.twig diff --git a/templates/album.html.twig b/templates/album.html.twig new file mode 100644 index 0000000..114cf80 --- /dev/null +++ b/templates/album.html.twig @@ -0,0 +1,58 @@ +{% extends '@RapsysTree/_base.html.twig' %} +{% block content %} + {% if album is defined and album %} +
+
+

+ {% for breadcrumb in album.breadcrumbs %} + {{ breadcrumb.name }} + {% endfor %} +

+ {% if album.elements is defined and album.elements %} + + {% endif %} +
+
+ {% if ( album.directories is defined and album.directories ) or ( album.files is defined and album.files ) %} + + {% endif %} + {% if album.file is defined and album.file %} +
+
{% trans %}Size{% endtrans %}
+
{{ album.file.intlsize }} {{ album.file.intlunit }}
+
+
+
{% trans %}Mime type{% endtrans %}
+
{{ album.file.mimetype }}
+
+ {% if album.file.thumb is defined and album.file.thumb %} +
+
{% trans %}Thumb{% endtrans %}
+
+ {{ album.file.name }} +
+
+ {% endif %} + {% endif %} +
+
+ {# TODO: XXX: add next, prev and parent links ? #} + {% endif %} +{% endblock %}