{% extends "forum/_base.html" %} {% from "macros/box.html" import m_box_menu, m_box_content %} {% block content %} {% call m_box_content(_("Recent conversations")) %} {% if threads %} {% else %}

{{ _("No message has been posted to this community yet") }}

{% endif %} {% if has_more or True %}

{{ _("All conversations") }}

{% endif %} {% endcall %} {% endblock %} {% macro m_thread(thread) %} {%- set author_href = url_for("social.user", user_id=thread.creator.id) %} {%- set author_img = user_photo_url(thread.creator, size=45) %} {%- set author_name = thread.creator.name %} {%- set thread_href = url_for(thread) %} {%- set thread_length = thread.posts|length %}
  • {{ thread.title }}

    {{ _("by") }} {{ author_name }} {%- trans date=thread.created_at|dateformat('long'), time=thread.created_at|timeformat('short') %}{{ date }} at {{ time }}{%- endtrans %}
    {{ thread_length-1 }} commentaires {%- if thread_length > 1 %} {% set last_post_creator = thread.posts[-1].creator %} {%- endif %}
  • {% endmacro %}