{% extends "base.html" %}
{% load i18n thumbnail %}

{% block title %}{% trans "Preview your comment" %}{% endblock %}

 {% block teaser %}<h1>{% trans "Preview your comment" %}</h1>{% endblock %}

{% block maincontent %}
  {% if form.errors %}
    <h2 class="grid_12">{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h2>
  {% else %}
<article id="c{{ comment.id }}" class="comment">
    <div class="comment_picture">
        <img class="avatar" src="{% thumbnail user.avatar|default:'unknown_profile.jpg' 'avatar' %}"
             width="70" height="70" alt="{{ comment.user }}"/>
    </div>
    <header class="comment_header">
        <a href="{{ user.get_profile.get_absolute_url }}" class="user">{{comment.user}}</a>
        <div class="submit_date"><time time="{% now 'c' %}">{% now 'DATETIME_FORMAT' %}</time></div>
    </header>
    <div class="comment_text">{{comment}}</div>
</article>

  {% endif %}

  {% include "comments/form.html" %}
{% endblock %}
