comments.tpl 1.3 KB

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