{# vim: set ts=2 et sts=2 sw=2: #} {% macro thread_list(threads, forum=None) -%}
    {% for thread in threads.object_list %} {% if forum %} {% set _forum = forum %} {% else %} {% set _forum = thread.forum %} {% endif %}
  1. {% if thread.is_locked %} {{ _('Locked', 'thread_type') }} {% endif %} {% if thread.is_sticky %} {{ _('Sticky', 'thread_type') }} {% endif %}
    {{ thread.replies }}
    {{ datetimeformat(thread.last_post.created) }}
    {{ _('by {username}')|fe(profile_url=profile_url(thread.last_post.author), username=thread.last_post.author.username) }}

  2. {% endfor %}
{{ threads|paginator }} {%- endmacro %}