{% extends "pybb/base.html" %} {% load url from future %} {% load pybb_tags i18n guardian_tags %} {% block title %}{{ topic }}{% endblock %} {% block extra_script %} {{ block.super }} {% include "pybb/_sceditor.html" %} {% endblock %} {% block breadcrumb %} {% with object=topic %} {% include "pybb/breadcrumb.html" %} {% endwith %} {% endblock %} {% block content %} {% get_obj_perms request.user for topic.forum as "forum_perms" %}

{{ topic.name }}

{% with _("Posts") as label %} {% include "pybb/_topic_pagination.html" %} {% endwith %} {% if topic.poll_type != 0 %} {% include "pybb/poll/detail.html" %} {% endif %}
{% if first_post %}{% ifnotequal first_post post_list.0 %} {% with first_post as post %}
  • {% include "pybb/post/template.html" %}
  • {% endwith %} {% endifnotequal %}{% endif %} {% for post in post_list %} {% cycle "odd" "even" as rowcolors silent %} {% include "pybb/post/template.html" with page=page_obj %} {% endfor %}
     
    {% with _("Posts") as label %} {% include "pybb/_topic_pagination.html" %} {% endwith %} {% if user.is_authenticated %}
    {% if user.is_moderator %} {% if topic.sticky and "can_unstick_topic" in forum_perms %} {% trans "Unstick topic" %} {% endif %} {% if not topic.sticky and "can_stick_topic" in forum_perms %} {% trans "Stick topic" %} {% endif %} {% if topic.closed and "can_open_topic" in forum_perms %} {% trans "Open topic" %} {% endif %} {% if not topic.closed and "can_close_topic" in forum_perms %} {% trans "Close topic" %} {% endif %} {% endif %} {% if user.is_subscribed %} {% trans "Unsubscribe" %} {% else %} {% trans "Subscribe" %} {% endif %}
    {% endif %} {% if user.is_authenticated or PYBB_ENABLE_ANONYMOUS_POST %} {% if not topic.closed %} {% include "pybb/post/form.html" %} {% endif %} {% else %} {% include "pybb/_need_to_login_message.html" %} {% endif %} {% if user.is_staff %}
    {% trans "Subscribers" %}: {% for subscriber in topic.subscribers.all %} {{ subscriber.username }}, {% endfor %}
    {% endif %}
    {% endblock %}