Do the same for comment edition

This commit is contained in:
2013-02-09 09:48:30 +01:00
parent fd65e84b62
commit 61d2d63bf4
3 changed files with 17 additions and 2 deletions

View File

@@ -18,10 +18,12 @@
{% for comment in comments %}
<div class="comment">
<div class="infos">
<a href="/comment/edit/{{ comment.id }}">#{{ comment.id }}</a> <span class="author">{{ comment.author }}</span> <span class="mail">{{ comment.email|default:"no mail" }}</span> <span class="date">{{ comment.date|date:"D d M Y H:m" }}<span> <a href="/comment/delete/{{ comment.id }}">delete</a>
<a href="/comment/edit/{{ comment.id }}">#{{ comment.id }}</a> <span class="author">{{ comment.author }}</span> <span class="mail">{{ comment.email|default:"no mail" }}</span> <span class="date">{{ comment.date|date:"D d M Y H:m" }}<span> <a href="/comment/delete/{{ comment.id }}" onclick="return confirm('Do you really want to delete this item ?')">delete</a>
</div>
<div class="content">
{% autoescape off %}
{{ comment.the_comment }}
{% endautoescape %}
</div>
{% endfor %}
</div>