Show the thread date and the top comment date if they differ #138
This commit is contained in:
parent
1fa5dd8085
commit
f7e91c4793
|
@ -22,7 +22,13 @@
|
|||
{% if t.thread.top_comment %}
|
||||
{% call widget_thread.thread_leader(t.thread.top_comment) %}
|
||||
<div class="info">
|
||||
<div>Posté le {{ t.date_created | dyndate }}</div>
|
||||
<div>
|
||||
Créé le {{ t.date_created | dyndate }}
|
||||
<!-- We check if the formatted date is not the same, because the date might differ slightly between the two even if it's the same -->
|
||||
{% if t.thread.top_comment.date_created | dyndate != t.date_created | dyndate %}
|
||||
(Posté le {{ t.thread.top_comment.date_created | dyndate }})
|
||||
{% endif %}
|
||||
</div>
|
||||
{{ widget_thread.post_actions(t) }}
|
||||
</div>
|
||||
{{ t.thread.top_comment.text | md }}
|
||||
|
|
Loading…
Reference in New Issue