{% macro thread_list(threads, forum=None) -%} {% for thread in threads.object_list %} {% if forum %} {% set _forum = forum %} {% else %} {% set _forum = thread.forum %} {% endif %} {% if thread.is_locked %} {{ pgettext('thread_type', 'Locked') }} {% endif %} {% if thread.is_sticky %} {{ pgettext('thread_type', 'Sticky') }} {% endif %} {{ thread.title }} {{ display_name(thread.creator) }} {{ thread.replies }} {% if thread.last_post %} {{ datetimeformat(thread.last_post.created) }}
{{ _('by {username}')|fe(profile_url=profile_url(thread.last_post.author), username=display_name(thread.last_post.author)) }} {% endif %} {% endfor %} {%- endmacro %}