{% if element.embed %} {% else %} {% endif %} {% if element.embed %} {{ element.name }} {% else %} {{ element.name }} {% endif %} link {% if app.user.id != element.owner.id %} tags_proposition report {% endif %} {% if app.user.id == element.owner.id %} {% if element.hasTagProposition %} tags proposition {% endif %} {% 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 %} {% endautoescape %} {{ element.created.date|date_or_relative_date }}
{% if element.tags|length %} {% endif %} {% autoescape false %} {% if element.comments|length > 1 %} {{ 'element.comments.thereare'|trans({'%count%':element.comments|length}, 'elements') }} {% elseif element.comments|length == 1 %} {{ 'element.comments.thereis'|trans({}, 'elements') }} {%endif %} {% endautoescape %} {{ 'element.comments.add'|trans({}, 'elements') }}
    {% if element.owner.id != app.user.id %}
  • {% if element.hasVoteGood(app.user.id) %} vote {% else %} vote {% endif %}
  • {% endif %}
  • {{ element.points }}
  • {% if element.getCountFavorite %} {{ 'element.favorite.remove'|trans({}, 'elements') }} {% else %} {{ 'element.favorite.add'|trans({}, 'elements') }} {% endif %}
{% if ids_display is defined %} {% if ids_display == event_const('TYPE_TAGS_PROPOSED') %} {% include 'MuzichCoreBundle:Element:tag.propositions.html.twig' with { 'propositions' : element.getTagsProposition, 'element_id' : element.id } %} {% endif %} {% endif %} {% if element.embed %} {% autoescape false %} {% endautoescape %} {% endif %}