{% set page_title = forum.title ~ " - Forum" %} {% set active_forum_nav=True %} {% extends "layout.html" %} {% block content %} {% from 'macros.html' import render_pagination %} {% if forum.topics %}
{{ render_pagination(topics, url_for('forum.view_forum', forum_id=forum.id)) }}
{% endif %} {% if current_user|post_topic(forum) and not forum.is_category %}
Mark as Read {% if forum.locked %} Locked {% else %} New Topic {% endif %}
{% endif %} {% if subforums[0]|length %} {% for subforum, forumread in subforums %} {% endfor %}
Forums
Forum Topics Posts Last Post
{% if forumread|is_unread(subforum.last_post, subforum) %} {% else %} {% endif %} {{ subforum.title }}
{% autoescape false %} {{ subforum.description|markup }} {% endautoescape %}
{% if subforum.children|length %}
{% endif %}
{{ subforum.topic_count }} {{ subforum.post_count }} {% if subforum.last_post %} {{ subforum.last_post.topic.title|crop_title }}
{{ subforum.last_post.date_created|time_since }}
by {{ subforum.last_post.user.username }} {% else %} No posts {% endif %}
{% endif %} {% if not forum.is_category %} {% for topic, topicread in topics.items %} {% else %} {% endfor %}
{{ forum.title }}
Thread Posts Views Last Post
{% if topicread|is_unread(topic.last_post) %} {% else %} {% endif %}
{{ topic.title }}
by {{ topic.user.username }}
{{ topic.post_count }} {{ topic.views }} {{ topic.last_post.date_created|time_since }}
by {{ topic.last_post.user.username }}
No Topics so far.
{% endif %} {% endblock %}