{% extends "base.html" %} {% load static from staticfiles %} {% load request_tags %} {% load thread_tags %} {% block headers %} {% endblock %} {% block content %}

{{ thread_title }}

{% csrf_token %}
{% if not threads_dict %}
No threads found.
{% else %} {% for thread_tuple in threads_dict %} {% if forloop.counter > 1 %}
{% endif %}

{{ thread_tuple.0 }}
{% if thread_tuple.3 > 0 %} ({{ thread_tuple.3 }} older message{{ thread_tuple.3|pluralize }}){% endif %}

{% for message in thread_tuple.1 %} {% if forloop.counter > 1 %}
{% endif %}
{{ message.owner|display_user:user }} ({{ message.post_date }}):
{{ message.body|safe }}
{% endfor %} {% with y=forloop.counter|stringformat:"s" %} {% with message_form_id="message_form_"|add:y %} {% with button_id="button_"|add:y %}
{% csrf_token %}
{% endwith %} {% endwith %} {% endwith %}
{% endfor %} {% endif %}
{% endblock %} {% block endscripts %} {% endblock %}