comments.html.twig 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <hr />
  2. <h3>
  3. {{ 'Comments' | get_lang }}
  4. </h3>
  5. <hr>
  6. <ul>
  7. {% for comment in comments %}
  8. <li>
  9. <div class="page-header">
  10. <a href="{{ _p.web_code }}">
  11. <img height="24" src="{{ comment.picture }}"/> {{ comment.complete_name }}
  12. </a>- {{ comment.sent_at_with_label }}
  13. </div>
  14. <p>
  15. {% if comment.comment is not empty %}
  16. {{ comment.comment }}
  17. {% else %}
  18. {{ 'HereIsYourFeedback' | get_lang }}
  19. {% endif %}
  20. </p>
  21. {% if comment.file_url is not empty %}
  22. <ul class="fa-ul">
  23. <li>
  24. <span class="fa-li fa fa-paperclip"></span>
  25. <a href="{{ comment.file_url }}">
  26. {{ comment.file_name_to_show }}
  27. </a>
  28. {% if is_allowed_to_edit %}
  29. <a href="{{ comment.delete_file_url }}">
  30. {{ 'delete.png'|img(22, 'Delete'|get_lang) }}
  31. </a>
  32. {% endif %}
  33. </li>
  34. </ul>
  35. {% endif %}
  36. </li>
  37. {% endfor %}
  38. </ul>
  39. <br />