{% import 'jinja_master/lib.html' as lib with context %}
{% for thread in value %} {% if not thread.first_post %} {% else %} {% endif %} {% if not thread.last_post %} {% else %} {% set author = thread.last_post.author() %} {% endif %} {% endfor %}
Topic Posts Views Last Post
{% if 'flags' in thread and 'Sticky' in thread.flags %} Sticky {% endif %}

{{thread.subject and h.text.truncate(thread.subject, 72) or '(no subject)'}}

{% set author = thread.first_post.author() %} {% if 'flags' in thread and 'Sticky' in thread.flags %} Sticky {% endif %}

{{thread.subject and h.text.truncate(thread.subject, 72) or '(no subject)'}}

By {{author.display_name}} on {{thread.first_post.timestamp.strftime('%a %b %d, %Y %I:%M %p')}}
{{thread.num_replies}} {{thread.num_views}} 

By {{lib.gravatar(author, size=16)}}{{author.display_name}}
on {{thread.last_post.timestamp.strftime('%a %b %d, %Y %I:%M %p')}}