comments.tpl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <p>
  23. <a href="{{ comment.file_url }}">
  24. <img src="{{ "attachment.gif"|icon(32) }}" width="32" height="32">
  25. {{ comment.file_name_to_show }}
  26. </a>
  27. {% if is_allowed_to_edit %}
  28. <a href="{{ comment.delete_file_url }}">
  29. <img src="{{ "delete.png"|icon(22) }}" width="22" height="22">
  30. </a>
  31. {% endif %}
  32. </p>
  33. {% endif %}
  34. </li>
  35. {% endfor %}
  36. </ul>
  37. <br />