{% set page_title = topic.title ~ " - Topic" %} {% set active_forum_nav=True %} {% extends "layout.html" %} {% block content %} {% from 'macros.html' import render_pagination, form_field %}
{{ render_pagination(posts, url_for('forum.view_topic', topic_id=topic.id)) }}
{% if current_user|post_reply() %} Reply {% endif %} {% if current_user|delete_topic(topic) %} Delete Topic {% endif %}
{% for post in posts.items %} {% endfor %}
#{%- if posts.page == 1 -%} {{ loop.index }} {%- else -%} {{ loop.index + posts.page * per_page }} {%- endif -%} {{ post.date_created|format_date('%d %B %Y') }} {% if post.date_modified %} (Last modified: {{ post.date_modified|format_date }} by {{ post.user.username }}.) {% endif %}
{% if post.user.avatar %} {% endif %}
Avatar {{ post.user.username }} {% if post.user|is_online %} Online {% else %} Offline {% endif %}
{{ post.user.primary_group.name }}
Posts: {{ post.user.post_count }}
Registered since: {{ post.user.date_joined|format_date('%b %d %Y') }}
{{ post.content }} {% if post.user.signature %}
{{ post.user.signature }} {% endif %}
PM {% if post.user.website %}| Website{% endif %} {% if current_user|edit_post(post) %} Edit | {% endif %} {% if current_user|delete_post(post) %} Delete | {% endif %} Quote
{% if current_user|post_reply() %}
{{ form.hidden_tag() }}
{{ form.content(rows="6", class="form-control") }}
{% endif %} {% endblock %}