{% extends '@Communication/communication/layout.html.twig' %} {% block communication_title %}Médiathèque · Communication{% endblock %} {% block communication_header %}{% endblock %} {% block communication_content %} {% set typeLabels = {image:'Image',video:'Vidéo',document:'Document',vector:'Vectoriel',other:'Fichier'} %} {% set typeIcons = {image:'solar:gallery-bold-duotone',video:'solar:videocamera-record-bold-duotone',document:'solar:file-text-bold-duotone',vector:'solar:layers-bold-duotone',other:'solar:file-bold-duotone'} %} {% set usedGb = library.storage.usedBytes / 1073741824 %} {% set quotaGb = library.storage.quotaBytes / 1073741824 %} {% set remainingGb = (library.storage.quotaBytes - library.storage.usedBytes) / 1073741824 %}

Médiathèque

Gérez vos ressources, images, vidéos et documents.

{% if is_granted('COMMUNICATION_CREATE') %} {% endif %}
{{ library.total }} média{{ library.total > 1 ? 's' }}
{% if is_granted('COMMUNICATION_CREATE') %}
Glissez-déposez vos fichiers ici ou PNG, JPG, GIF, SVG, MP4, PDF et Word — 50 Mo maximum par fichier
{% endif %} {% set recentRows = library.rows|filter(row => row.recent) %} {% set olderRows = library.rows|filter(row => not row.recent) %} {% for groupLabel,rows in {'Ajouts récents':recentRows,'Médias plus anciens':olderRows} %}

{{ groupLabel }}

{% for row in rows %} {% set media = row.media %} {% set extension = media.originalFilename|split('.')|last|upper %} {% set folderToken = media.folder ? media.folder.idtoken : 'none' %} {% endfor %}
{% endfor %}
{% if is_granted('COMMUNICATION_CREATE') %} {% endif %}
{% endblock %}