{% from "components/ui.html" import pager %} {# A page of the threads of one folder: each row opens its conversation, from the folder ``current``, and names the folders of its messages by ``tag_names``. #} {% if threads %}
{% for t in threads %} {% endfor %}
WithSubjectDate
{{ t.participants[:3] | addresses }}{% if t.participants | length > 3 %} and {{ t.participants | length - 3 }} more{% endif %} {{ t.subject | or_missing }} {% if t.snippet %}{{ t.snippet }}{% endif %} {{ t.date | when }} {% if t.message_count > 1 %}{{ t.message_count }} messages{% endif %} {% if t.folder_ids | length > 1 %}{% for f in t.folder_ids %}{{ tag_names.get(f, f) }}{% endfor %}{% endif %} {% if t.unread_count %}{{ t.unread_count }} unread{% endif %}
{% else %}
No conversations.
{% endif %} {{ pager(pages) }}