{% if actions|length != 0 %} {% for action in actions %}
{% if action.actionFiles is defined and action.actionFiles|length != 0 %}
{% for fichier in action.actionFiles %} {% endfor %}
Label Affichage
{{fichier.file|truncate(110, true, '...')}} {% set extension = fichier.file | split(".") | last | lower %} {% if extension in ["doc", "ppt", "xls", "docx", "pptx", "xlsx",'pdf','txt','sql'] %} {% elseif extension in ['png','jpg','jpeg','gif'] %} {% endif %}
{% else %} {% endif %}
{% endfor %} {% endif %}