{% extends 'pybb/base.html' %} {% load pybb_tags i18n staticfiles %} {% block title %}{{ topic }}{% endblock %} {% block extra_head %} {{ block.super }} {{ form.media.css }} {% endblock %} {% block extra_script %} {{ block.super }} {{ form.media.js }} {% endblock %} {% block breadcrumb %} {% with object=topic %} {% include "pybb/breadcrumb.html" %} {% endwith %} {% endblock %} {% block content %}

{{ topic.name }}

{% include "pybb/pagination.html" %} {% if topic.poll_type %} {% include 'pybb/poll.html' %} {% endif %}
{% if first_post and first_post != post_list.0 %}
{% include "pybb/post_template.html" with first_post=post %}
{% endif %} {% for post in post_list %} {% cycle 'odd' 'even' as rowcolors silent %} {% include "pybb/post_template.html" %} {% endfor %}
 
{% with _('Posts') as label %} {% include "pybb/pagination.html" %} {% endwith %} {% if user.is_authenticated %} {% if user.is_moderator or user.is_subscribed or user|pybb_may_subscribe_topic:topic %}
{% if user.is_moderator %} {% if topic.sticky %} {% trans 'Unstick topic' %} / {% else %} {% trans 'Stick topic' %} / {% endif %} {% if topic.closed %} {% trans 'Open topic' %} / {% else %} {% trans 'Close topic' %} / {% endif %} {% if perms.pybb.change_topic and user.is_staff %} {% trans 'Admin' %} / {% endif %} {% comment %} {% trans 'Merge topics' %} / {% endcomment %} {% endif %} {% if user.is_subscribed %} {% trans 'Unsubscribe' %} {% elif user|pybb_may_subscribe_topic:topic %} {% trans 'Subscribe' %} {% endif %}
{% endif %} {% endif %} {% if user|pybb_may_create_post:topic %} {% include "pybb/post_form.html" %} {% else %} {% if not user.is_authenticated %} {% include 'pybb/_need_to_login_message.html' %} {% endif %} {% endif %} {% if user.is_staff %}
{% trans 'Subscribers' %}{% trans ':' %} {% for subscriber in topic.subscribers.all %} {% pybb_get_profile user=subscriber as subscriber_profile %} {{ subscriber_profile.get_display_name }} {% if not forloop.last %},{% endif %} {% endfor %}
{% endif %}
{% endblock %}