{% extends "orga/submission/base.html" %} {% load i18n %} {% load rich_text %} {% load rules %} {% load static %} {% block scripts %} {{ block.super }} {% endblock scripts %} {% block submission_content %} {% has_perm 'submission.create_submissioncomment' request.user submission as can_add_comment %}
{% if not comments %}
{% translate "No comments yet." %}
{% endif %} {% for comment in comments %}
{% include "orga/includes/user_name.html" with user=comment.user lightbox=True %}
{{ comment.created|date:"SHORT_DATETIME_FORMAT" }}
{% if can_delete_own_comments and comment.user_id == request.user.pk %} {% endif %}
{{ comment.text|rich_text }}
{% endfor %}
{% if can_add_comment %}
{% csrf_token %}
{% include "orga/includes/user_name.html" with user=request.user lightbox=True %}
{{ form }}
{% translate "Add comment" as submit_label %} {% include "orga/includes/submit_row.html" %}
{% endif %} {% endblock %}