{% import "widgets/user.html" as widget_user %} {% import "widgets/attachments.html" as widget_attachments %} {% macro thread(comments, top_comment) %} {% for c in comments %} {% if c != top_comment %} {% elif loop.index0 != 0 %}
Ce message est le top comment
{% endif %} {% endfor %}
{{ widget_user.profile(c.author) }}
Posté le {{ c.date_created|dyndate }}
{% if c.date_created != c.date_modified %}
Modifié le {{ c.date_modified|dyndate }}
{% endif %} {# TODO: Let guests edit their posts #} {% if current_user.is_authenticated and current_user.can_edit_post(c) %} {% endif %} {% if current_user.is_authenticated and current_user.can_delete_post(c) %} {% endif %}
{{ c.text|md }} {{ widget_attachments.attachments(c) }} {% if c.author.signature %}
{{ c.author.signature|md }} {% endif %}
{% endmacro %}