{% load i18n %} {% load forum_conversation_tags %} {% load forum_member_tags %} {% load forum_tracking_tags %} {% if topics or not hide_if_empty %}

{% if topics == announces %} {% trans topic_list_title %} {% else %} {% trans topic_list_title %} {% include "forum_conversation/partials/topic_list_header_sort.html" with col=header.0%} {% endif %}

{% if topics == announces %} {% trans "Replies" %} {% else %} {% trans "Replies" %} {% include "forum_conversation/partials/topic_list_header_sort.html" with col=header.1%} {% endif %}
{% if topics == announces %} {% trans "Views" %} {% else %} {% trans "Views" %} {% include "forum_conversation/partials/topic_list_header_sort.html" with col=header.2%} {% endif %}
{% if topics == announces %} {% trans "Last post" %} {% else %} {% trans "Last post" %} {% include "forum_conversation/partials/topic_list_header_sort.html" with col=header.3%} {% endif %}
{% if not force_all_unread and unread_topics == None %}{% get_unread_topics topics request.user as unread_topics %}{% endif %} {% for topic in topics %}
{% topic_pages_inline_list topic %}
{{ topic.subject }}{% if topic.is_locked %} {% endif %}
{% if topic.poster %} {% url 'forum_member:profile' topic.poster_id as poster_url %} {% blocktrans trimmed with poster_url=poster_url username=topic.poster|forum_member_display_name %} By: {{ username }} {% endblocktrans %} {% include "partials/user_icon.html" with topic=topic user=topic.poster %} {% blocktrans trimmed with creation_date=topic.created %} on {{ creation_date }} {% endblocktrans %} {% else %} {% blocktrans trimmed with poster_username=topic.first_post.username creation_date=topic.created %} By: {{ poster_username }} on {{ creation_date }} {% endblocktrans %} {% endif %}
{{ topic.posts_count|add:"-1" }}
{{ topic.views_count }}
{% with last_post=topic.last_post %} {% if last_post.poster %} {% url 'forum_member:profile' last_post.poster_id as poster_url %} {% blocktrans trimmed with poster_url=poster_url username=last_post.poster|forum_member_display_name %} By: {{ username }} {% endblocktrans %} {% include "partials/user_icon.html" with topic=last_post.topic user=last_post.poster %} {% else %} {% blocktrans trimmed with poster_username=last_post.username %} By: {{ poster_username }} {% endblocktrans %} {% endif %}  
{{ last_post.created }} {% endwith %}
{% empty %}
{% if empty_message %} {{ empty_message }} {% else %} {% trans "There are no topics in this forum." %} {% endif %}
{% endfor %}
{% endif %}