{% from "TdbBaseBundle::macros.html.twig" import userChip %} {% set nbClips=clips|length %} {% if nbClips > 0 %}
{% if color is defined %}
{% else %}
{% endif %}

{{ nbClips }} clip{% if nbClips > 1 %}s{% endif %} {{ title }}

{% for c in clips %} {% endfor %}
  Nom Respo(s) montage Musique(s) Durée Type Commentaire(s) Actions
{% if c.ClipsWithMusics|length > 0 %} {% endif %} {% if c.masters|length == 0 %} {% endif %} {% if c.filename == null %} {% endif %} {{ c.name }} {% for m in c.respoMontage %} {{ userChip(m, 30) }} {% else %} Prendre le clip {% endfor %} {% for m in c.musics %} {{ m }} {% if not loop.last %}, {% endif %} {% endfor %} {{ c.duration|durationHMSF }} {{ c.type }} {{ c.commentsNoDel|length }} {% if is_granted("show", c) %}{% endif %} {% if is_granted("edit", c) %}{% endif %} {% if is_granted("annotate", c) %}{% endif %} {% if not c.canceled %} {% if c.validatedAt is not null %} {% if is_granted("validate", c) %}{% endif %} {% elseif c.finishedAt is not null %} {% if is_granted("edit", c) %}{% endif %} {% if is_granted("validate", c) %}{% endif %} {% elseif c.derushed %} {% if is_granted("edit", c) %} {% endif %} {% if is_granted("edit", c) %}{% endif %} {% elseif c.shoted %} {% if is_granted("edit", c) %}{% endif %} {% if is_granted("edit", c) %}{% endif %} {% else %} {% if is_granted("edit", c) %} {% endif %} {% endif %} {% if is_granted("edit", c) %} {% endif %} {% else %} {% if is_granted("edit", c) %} Désannuler{% endif %} {% if is_granted("delete", c) %} Supprimer{% endif %} {% endif %}
{% endif %}