{% extends "forum/_base.html" %} {% from "macros/box.html" import m_box_menu, m_box_content %} {% from "forum/_macros.html" import forum_menu %} {% block forumcontent %} {%- block forumsidebar %}
{{ _("Showing :") }} {%- set global_actions = actions.for_category('forum:global') %} {{ forum_menu(global_actions) }}
{%- endblock %} {% for month, threads in grouped_threads %}

{{ month }}

{% for thread in threads %} {{ m_thread(thread) }} {% endfor %}
{{ _("Topic") }} {{ _("Replies") }}
{% else %}

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

{% endfor %} {% endblock %} {% macro m_thread(thread) %} {%- set thread_href = url_for(".thread", thread_id=thread.id, community_id=g.community.slug) %} {%- set thread_length = thread.posts|length %} {{ thread.title }}

{{ thread.posts[0].body_html|safe|striptags|truncate(155, False, '...', 0) }}

{{ thread_length-1 }} {% endmacro %}