{# comments - optional list of comment dicts thread_id - optional subject for thread {% snippet 'comments/snippets/thread.html', comments=comments %} {% snippet 'comments/snippets/thread.html', thread_id=pkg.id %} #} {% set items = comments or h.comments_thread_for(thread_id).comments or [] %} {% asset 'comments/comments-thread' %} {% asset 'comments/comments-thread-styles' %}
{% if items %}

{{ _('Comments') }}

{% endif %} {% if h.check_access('comments_comment_create', {thread_id: thread_id}) %} {% snippet 'comments/snippets/comment_form.html', thread_id=thread_id %} {% endif %}