{% load scipost_extras %} {% load comment_extras %} {% load user_groups %} {% load submissions_extras %} {% is_ed_admin request.user as is_ed_admin %}
{% if 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 %} [id {{ comment.id }}] {% if user.is_authenticated %} {% include 'helpdesk/_ticket_for_object_link.html' with object=comment %} {% 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' }} [id {{ comment.content_object.id }}]) {% 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 %} {% if comment.anonymous %} {% if request.user.contributor and request.user.contributor == comment.core_content_object.editor_in_charge or is_ed_admin %}