Ajout de la date de publication et de modification d'un post

This commit is contained in:
Eragon 2019-12-05 17:14:40 +01:00
parent 9da11b62ca
commit 90ac259177
No known key found for this signature in database
GPG Key ID: 41F8C3FE5948FDAB
1 changed files with 8 additions and 2 deletions

View File

@ -13,14 +13,20 @@
<td class="member">{{ widget_member.profile(t.author ) }}</td>
<td>{{ t.thread.top_comment.text }}</td>
</tr></table>
<hr>
<table class="thread">
{% for i, c in enumerate(t.thread.comments) %}
<tr>
{% if c != t.thread.top_comment %}
<td class="member">{{ widget_member.profile(c.author ) }}</td>
<td>{{ c.text }}
<td>
{% if c.date_created != c.date_modified %}
Le {{ c.date_created|date }} (Modifié le {{ c.date_modified|date }})
{% elif c.date_created == c.date_modified %}
Le {{ c.date_created|date }}
{% endif %}
<hr>
<p>{{ c.text }}</p>
{% elif i != 0 %}
<div>Ce message est le top comment</div>
{% endif %}