{% load comment_extras %} {% load user_groups %} {% load submissions_extras %} {% is_edcol_admin request.user as is_edcol_admin %}
{% if request.user.contributor and request.user.contributor == comment.core_content_object.editor_in_charge or is_edcol_admin %} {% if request.user|is_possible_author_of_submission:comment.core_content_object %}

Anonymous on {{comment.date_submitted|date:'Y-m-d'}}

{% else %} {{ comment.author.user.first_name }} {{ comment.author.user.last_name }} on {{ comment.date_submitted|date:'Y-m-d' }}
{% if comment.anonymous %}Chose public anonymity{% endif %} {% endif %} {% elif comment.anonymous %} Anonymous on {{comment.date_submitted|date:'Y-m-d'}} {% else %} {% if comment.is_author_reply %}Author{% endif %} {{comment.author.user.first_name}} {{comment.author.user.last_name}} on {{comment.date_submitted|date:'Y-m-d'}} {% endif %} {% if comment.doi_string %}  {{ comment|citation }}{% endif %} {% if comment|is_reply_to_comment %} (in reply to {% if comment.content_object.anonymous %}Anonymous Comment{% else %}{{comment.content_object.author.user.first_name}} {{comment.content_object.author.user.last_name}}{% endif %} on {{comment.content_object.date_submitted|date:'Y-m-d'}}) {% elif comment|is_reply_to_report %} (in reply to Report {{comment.content_object.report_nr}}{% if not comment.content_object.anonymous %} by {{comment.content_object.author.user.first_name}} {{comment.content_object.author.user.last_name}}{% endif %} on {{comment.content_object.date_submitted|date:'Y-m-d'}}) {% endif %}