Show the thread date and the top comment date if they differ #138

This commit is contained in:
Eragon 2024-03-09 14:18:12 +01:00
parent 1fa5dd8085
commit f7e91c4793
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 7 additions and 1 deletions

View File

@ -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 }}