comment.html.twig 1.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. <a href="{{ path('show_user', {'slug': comment.u.s}) }}" >{{ comment.u.n }}</a>:
  2. {{ comment.c }}
  3. <span class="datesince">
  4. ({{ date_or_relative_date(comment.d, 'comment.created') }}{% if comment.e is defined %}
  5. {{ date_or_relative_date(comment.e, 'comment.edited') }}{% endif %})
  6. </span>
  7. {% if app.user.id != comment.u.i %}
  8. <a title="{{ 'comment.report.link_title'|trans({}, 'userui') }}"
  9. class="comment_report"
  10. href="{{ path('ajax_alert_comment', {'element_id':element_id, 'date': comment.d, 'token':app.user.getPersonalHash}) }}">
  11. <img src="{{ asset('bundles/muzichcore/img/1331832708_comment_alert.png') }}" alt="report" />
  12. </a>
  13. {% endif %}
  14. {% if app.user.id == comment.u.i %}
  15. <a title="{{ 'comment.edit.link'|trans({}, 'elements') }}" class="comment_edit_link"
  16. href="{{ path('ajax_edit_comment', {'element_id': element_id, 'date':comment.d, 'token':app.user.getPersonalHash}) }}" style="display: none;"
  17. >
  18. <img src="{{ asset('bundles/muzichcore/img/1327151338_desktop.png') }}" alt="edit" />
  19. </a>
  20. <a title="{{ 'comment.remove.link'|trans({}, 'elements') }}" class="comment_remove_link"
  21. href="{{ path('ajax_delete_comment', {'element_id': element_id, 'date':comment.d, 'token':app.user.getPersonalHash}) }}" style="display: none;"
  22. >
  23. <img src="{{ asset('bundles/muzichcore/img/1327168960_fileclose.png') }}" alt="delete" />
  24. </a>
  25. <img
  26. class="comment_loader"
  27. style="display: none;"
  28. src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}"
  29. alt="loading"
  30. />
  31. {% endif %}