{% extends "forum/_base.html" %} {%- from "macros/user.html" import m_user_link, m_user_photo %} {% 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 thread_href = url_for(thread) %} {%- set thread_length = thread.posts|length %}
  • {% call m_user_link(thread.creator) %} {{ m_user_photo(thread.creator, size=45) }} {%- endcall %}

    {{ thread.title }}

    {{ _("by %(creator)s", creator=m_user_link(thread.creator)) }} – {{ thread.created_at | age(date_threshold='day') }} {%- if thread.closed %} {%- endif %}
    {{ thread_length-1 }} commentaires {%- if thread_length > 1 %} {% set last_post_creator = thread.posts[-1].creator %} {%- endif %}
  • {% endmacro %}