{% extends "orga/submission/base.html" %} {% load compress %} {% load i18n %} {% load rules %} {% load static %} {% load rich_text %} {% block scripts %} {{ block.super }} {% compress js %} {% endcompress %} {% endblock scripts %} {% block submission_content %} {% has_perm 'submission.add_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" }}
{% has_perm 'submission.delete_submissioncomment' request.user comment as can_delete_comment %} {% if can_delete_comment %} {% 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 %}