{% extends "base.html" %} {% load static from staticfiles %} {% load thread_tags %} {% load bootstrap %} {% block headers %} {% endblock %} {% block content %}
{% if follow_form %}
{% csrf_token %} {{ follow_form|bootstrap }}
{% endif %}

View Thread


{% if not thread %}
Thread not found.
{% else %}

{{ thread.subject }} {% if edit_thread_form %} (edit) {% endif %}

{% if edit_thread_form %}
{% csrf_token %} {{ edit_thread_form|bootstrap }}
{% endif %} {% for message, edit_form, delete_form in messages_list %} {% if forloop.counter > 1 %}
{% endif %}
{{ message.owner|display_user:user }} {% if edit_form %}(edit{% if delete_form %}, delete{% endif %}){% elif delete_form %}(delete){% endif %} ({{ message.post_date }}):
{{ message.body|safe }} {% if message.edited %}

This message has been modified from its original content.

{% endif %}
{% if edit_form %}
{% csrf_token %} {{ edit_form|bootstrap }}
{% endif %} {% if delete_form %}
{% csrf_token %} {{ delete_form|bootstrap }}
{% endif %} {% endfor %} {% if add_message_form %}
{% csrf_token %} {{ add_message_form|bootstrap }}
{% endif %}
{% endif %}
Showing {{ messages_list|length }} message{{ messages_list|length|pluralize }}. Viewed {{ thread.views }} time{{ thread.views|pluralize }}. Followed by {{ thread.followers.count }} member{{ thread.followers.count|pluralize }}.
{% endblock %} {% block endscripts %} {% endblock %}