{% extends "forum/base.html" %} {% load i18n crispy_forms_tags guardian_tags %} {% block head_base_js %}{{ block.super }}{% if FORUM_TEXT_FIELD_JS_TEMPLATE and form.text %} {% include FORUM_TEXT_FIELD_JS_TEMPLATE with field=form.text %} {% endif %}{% endblock %} {% block forum_content %} {% get_obj_perms request.user for category_instance as "category_perms" %} {% get_obj_perms request.user for thread_instance as "thread_perms" %}
{% for post in object_list %}
{% spaceless %}
{% if FORUM_AUTHOR_VCARD_TEMPLATE %} {% include FORUM_AUTHOR_VCARD_TEMPLATE with author=post.author.email %} {% else %}

{{ post.author }} #{{ post.id }}

{% endif %}
{% endspaceless %}
{% spaceless %}

{% blocktrans with created_date=post.created|timesince %}Since {{ created_date }}{% endblocktrans %}

{% endspaceless %}
{% if FORUM_TEXT_MARKUP_RENDER_TEMPLATE %} {% include FORUM_TEXT_MARKUP_RENDER_TEMPLATE with content=post.text %} {% else %} {{ post.text|linebreaks }} {% endif %}
{% spaceless %} {% if post.modified > post.created %}

{% blocktrans with modified_date=post.modified|timesince %}Edited since {{ modified_date }}{% endblocktrans %}

{% endif %} {% endspaceless %}
{% endfor %} {% comment %}{% pagination_tag %}{% endcomment %} {% include 'forum/pagination.html' %}
{% if form %}

{% blocktrans %}New message{% endblocktrans %}

{% crispy form %} {% else %}

{% blocktrans %}This thread is closed, you can't add it a new post{% endblocktrans %}

{% endif %} {% endblock %}