{% load bootstrap %} {% if user.is_authenticated and open_for_commenting and perms.scipost.can_submit_comments %} {% if user_is_referee and submission %}

{% include 'bi/exclamation-triangle-fill.html' %} You are an invited referee, please submit a Report instead.

I'm know, but let me contribute a Comment anyway {% url 'comments:new_comment' object_id=object_id type_of_object=type_of_object as url %} {% include 'comments/_add_comment_form.html' with form=form url=url %}
{% else %}
Contribute a Comment {% url 'comments:new_comment' object_id=object_id type_of_object=type_of_object as url %} {% include 'comments/_add_comment_form.html' with form=form url=url %}
{% endif %} {% elif not user.is_authenticated %}

Login to comment

{% endif %}