Ajout de la date de publication et de modification d'un post
This commit is contained in:
parent
9da11b62ca
commit
90ac259177
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue