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

{% 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="{% if user.get_profile.thumbnail %}
        {{user.get_profile.thumbnail.url}}
        {% else %}
        {{STATIC_URL}}img/unknown_thumbnail.png
        {% endif %}" alt=""/>
    </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|markdown_safe}}</div>
</article>

  {% endif %}

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