{% 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 %} {% from "forum/_macros.html" import forum_menu %} {% block forumcontent %}
{{ _("Showing :") }} {%- set global_actions = actions.for_category('forum:global') %} {{ forum_menu(global_actions) }}
{% if threads %} {% for thread in threads %} {{ m_thread(thread) }} {% endfor %}
{{ _("Topic") }} {{ _("Participants") }} {{ _("Replies") }} {{ _("Viewers") }} {{ _("Views") }} {{ _("Activity") }}


{% else %}

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

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

{{ _("All conversations") }}

{% endif %}
{% endblock %} {% macro m_thread(thread) %} {%- set thread_href = url_for(thread) %} {%- set thread_length = thread.posts|length %}

{%- if thread.closed %} {%- endif %} {{ thread.title }}

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

{% call m_user_link(thread.creator) %} {{ m_user_photo(thread.creator, size=40) }} {%- endcall %} {% for p in thread.get_frequent_posters(5) %} {% call m_user_link(p) %} {%- endcall %} {% endfor %}
{{ thread_length-1 }} {% if nb_viewed_posts[thread] %} +{{ nb_viewed_posts[thread] }} {% endif %}
{{ nb_viewers[thread] }}
{{ nb_viewed_times[thread] or 0 }}
{{ activity_time_format(thread.last_post_at) }}
{% endmacro %}