{% if display_edit_actions is not defined %} {% set display_edit_actions = true %} {% endif %} {% if display_social_buttons is not defined %} {% set display_social_buttons = true %} {% endif %} {% if display_player is not defined %} {% set display_player = true %} {% endif %} {% if display_comments is not defined %} {% set display_comments = true %} {% endif %} {% if his_group is not defined %} {% set his_group = false %} {% endif %} {% if display_autoplay is not defined %} {% set display_autoplay = false %} {% endif %} {% if tag_ids_json is not defined %} {% set tag_ids_json = '[]' %} {% endif %} {% if display_tags_proposition is not defined %} {% set display_tags_proposition = false %} {% endif %}
{% if element.embed %}
{% else %}
{% endif %}
|
{% autoescape false %} {% if element.group and no_group_name is not defined%} {{ 'element.name.whoandgroup'|trans({ '%owner_url%' : path('show_user', {'slug': element.owner.slug}), '%owner_name%' : element.owner.name, '%group_url%' : path('show_group', {'slug': element.group.slug}), '%group_name%' : element.group.name }, 'elements') }} {% else %} {{ 'element.name.who'|trans({ '%owner_url%' : path('show_user', {'slug': element.owner.slug}), '%owner_name%' : element.owner.name }, 'elements') }} {% endif %} {{ element.created.date|date_or_relative_date }} {% if element.parent %} {{ 'element.name.reshare'|trans({ '%owner_url%' : path('show_user', {'slug': element.parent.owner.slug}), '%owner_name%' : element.parent.owner.name }, 'elements') }} {% endif %} {% endautoescape %} |
{% if element.comments|length %} {% for comment in element.comments %} {% include "MuzichCommentBundle:Comment:li.comment.html.twig" with {'element_id' : element.id} %} {% endfor %} {% endif %}