{% extends "zinnia/base.html" %} {% load i18n zinnia comments %} {% block title %}{% trans "Comment preview" %}{% endblock title %} {% block body-class %}comment-preview{% endblock body-class %} {% block content %} {% if form.errors %}

{% blocktrans count errors=form.errors|length %}Please correct following error.{% plural %}Please correct following errors.{% endblocktrans %}

{% else %}

{% trans "Preview of the comment" %}

    {% with comment=form.get_comment_object %}
  1. {{ comment.name }}

    {% blocktrans with comment_url=comment.url|default:"#" comment_name=comment.name comment_human_date=comment.submit_date|date:"SHORT_DATETIME_FORMAT" comment_technical_date=comment.submit_date|date:"c" trimmed %} {{ comment_name }} on {% endblocktrans %}

    {{ comment.comment|linebreaks }}
  2. {% endwith %}
{% endif %} {% include "comments/zinnia/entry/form.html" %} {% endblock content %}