{% load scipost_extras %} {% if comments %}

Comments on this publication

{% for comment in comments %}
{{ comment.print_identifier }} {{ comment.categories_as_ul }}
{% if user.is_authenticated and perms.scipost.can_express_opinion_on_comments %} {% if user.contributor != comment.author %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% else %} {{ comment.opinions_as_ul }} {% endif %} {% endif %}

{{ comment.comment_text|linebreaks }}

{% if user|is_in_group:'Editorial College' or user|is_in_group:'Editorial Administrators' %}

Remarks for editors:

{{ comment.remarks_for_editors|linebreaks }}

{% endif %}
{% for reply in author_replies %} {% if reply.in_reply_to_comment %} {% if reply.in_reply_to_comment.id == comment.id %}

{{ reply.print_identifier }} {{ reply.categories_as_ul }}
{% if user.is_authenticated and perms.scipost.can_express_opinion_on_comments %} {% if user.contributor != reply.author %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% else %} {{ reply.opinions_as_ul }} {% endif %} {% endif %}

{{ reply.comment_text|linebreaks }}

{% if user|is_in_group:'Editorial College' or user|is_in_group:'Editorial Administrators' %}

Remarks for editors:

{{ reply.remarks_for_editors|linebreaks }}

{% endif %}
{% endif %} {% endif %} {% endfor %} {% if user.is_authenticated and perms.scipost.can_submit_comments %}

{% endif %} {% endfor %}
{% endif %}