{% extends "forums/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "includes/common_macros.html" import content_editor with context %} {% from "includes/common_macros.html" import for_contributors_sidebar %} {# L10n: {t} is the title of the thread. {f} is the name of the forum. #} {% set title = _('{t} | {f} | Forums')|f(t=thread.title, f=forum.name) %} {% set crumbs = [(url('forums.forums'), _('Contributor Discussions')), (url('forums.threads', forum.slug), forum.name), (None, thread.title)] %} {% set canonical_url = canonicalize(viewname='forums.posts', forum_slug=forum.slug, thread_id=thread.id) %} {% if posts.number > 1 %} {% set canonical_url = canonical_url|urlparams(page=posts.number) %} {% endif %} {% set scripts = ('forums',) %} {% set ga_content_group = "contributor-forum-thread-details" %} {% block content %}

{{ forum.name }}

{{ thread.title }}

{% if user.is_authenticated %}
{% csrf_token %} {% if is_watching_thread %} {% set watch = _('Stop watching this thread') %} {% else %} {% set watch = _('Watch this thread') %} {% endif %}
{% endif %} {% if posts %}
    {% for post in posts.object_list %}
  1. {% include "forums/includes/post.html" %}
  2. {% endfor %}
{{ posts|paginator }} {% else %}

{{ _('Oh, no! Looks like there are no posts!') }}

{% endif %} {% if user.is_authenticated and not thread.is_locked and forum.allows_posting_by(user) %}
{% csrf_token %}

{{ _('Post a reply') }}

{{ errorlist(form) }} {% if request.limited %}
{{ _('You have exceeded the number of threads and replies that can be posted in a given amount of time. Please try again shortly.') }}
{% endif %}
{{ content_editor(form.content) }}
{% elif user.is_authenticated and thread.is_locked %}

{{ _('This thread has been locked. It is no longer possible to post new replies.') }}

{% endif %}
{% if post_preview %} {% include "forums/includes/post_preview.html" %} {% endif %}
{% endblock %} {% block side %} {% if has_perm(user, 'forums.move_forum_thread', forum) %}
{% csrf_token %}
{% endif %} {{ for_contributors_sidebar(user, settings.WIKI_DEFAULT_LANGUAGE, active='forums') }} {% endblock %}