{% set page_title = forum.title %} {% set active_forum_nav=True %} {% extends theme("layout.html") %} {% block content %} {% from theme('macros.html') import render_pagination, topic_pages %}
{{ render_pagination(topics, forum.url) }}
{% if current_user|post_topic(forum) %}
{% if forum.locked %} {% trans %}Locked{% endtrans %} {% else %} {% trans %}New Topic{% endtrans %} {% endif %}
{% endif %}
{% trans %}Topic{% endtrans %}
{% trans %}Last Post{% endtrans %}
{% for topic, topicread in topics.items %}
{% if topic.locked %} {% elif topic.important %} {% if topic|topic_is_unread(topicread, current_user, forumsread) %} {% else %} {% endif %} {% else %} {% if topic|topic_is_unread(topicread, current_user, forumsread) %} {% else %} {% endif %} {% endif %}
{{ topic.title }} {{ topic_pages(topic, flaskbb_config["POSTS_PER_PAGE"]) }}
{% trans %}by{% endtrans %} {% if topic.user_id %} {{ topic.user.username }} {% else %} {{ topic.username }} {% endif %}
{{ topic.last_post.date_created|time_since }}
{% trans %}by{% endtrans %} {% if topic.last_post.user_id %} {{ topic.last_post.user.username }} {% else %} {{ topic.last_post.username }} {% endif %}
{% else %}
{% trans %}No Topics.{% endtrans %}
{% endfor %}
{% if current_user|can_moderate(forum) %}
{% trans %}Moderation Mode{% endtrans %}
{% endif %}
{% endblock %}