Anfänglicher Commit: Producion Version Stand: Oktober 2014
This commit is contained in:
26
templates/comments/preview.html
Normal file
26
templates/comments/preview.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user