26 lines
986 B
HTML
26 lines
986 B
HTML
{% extends "base.html" %}
|
|
{% load i18n django_markdown %}
|
|
|
|
{% block title %}{% trans "Preview your comment" %}{% endblock %}
|
|
|
|
{% block maincontent %}
|
|
{% if form.errors %}
|
|
<h2>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h2>
|
|
{% else %}
|
|
<h2>{% trans "Preview your comment" %}</h2>
|
|
<table id="comments" class="layout">
|
|
<tr id="c{{ comment.id }}">
|
|
<td class="avatar">
|
|
{% if user.get_profile.thumbnail %}<img src="{{user.get_profile.thumbnail.url}}" alt=""/>{% else %}<img src="{{STATIC_URL}}img/unknown_thumbnail.png" alt=""/>{% endif %}
|
|
</td>
|
|
<td class="userinfo">
|
|
<div class="user">{{user}}</div>
|
|
<time class="submit_date" datetime='{% now "c" %}'>{% now "d. m. Y. h:i" %}</time>
|
|
</td>
|
|
<td class="content">{{comment|markdown_safe}}</td>
|
|
</tr>
|
|
</table>
|
|
{% endif %}
|
|
<br class="clear" />
|
|
{% include "comments/form.html" %}
|
|
{% endblock %} |