{% load i18n comments_conditional bootstrap applicationcontent_tags %} {% get_comment_list for project as comment_list %} {% app_reverse "zipfelchappe_project_detail" "zipfelchappe.urls" project.slug as project_url %}
{% for comment in comment_list %}
{% if comment.user == request.user or request.user.is_superuser %} {% url comments-delete comment.id as delete_url %}
{% csrf_token %}
{% endif %}

{{ comment.name }} {% trans "before" %} {{ comment.submit_date|timesince }}

{{ comment.comment }}

{% endfor %}
{% if request.user.is_authenticated %} {% get_comment_form for project as comment_form %}
{% csrf_token %} {% for field in comment_form.hidden_fields %} {{ field }} {% endfor %}
{{ comment_form.comment }}
{% else %} {% trans "You must be logged in to comment on this project" %} {% endif %}