{% 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 %}

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

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

{% if FORUM_TEXT_MARKUP_RENDER_TEMPLATE %} {% include FORUM_TEXT_MARKUP_RENDER_TEMPLATE with content=post.text %} {% else %} {{ post.text|linebreaks }} {% endif %}
{% blocktrans %}Reply{% endblocktrans %} {% if FORUM_OWNER_MESSAGE_CAN_EDIT and post.author == request.user or "moderate_category" in category_perms or "moderate_thread" in thread_perms %} {% blocktrans %}Edit{% endblocktrans %} {% endif %} {% if "moderate_category" in category_perms or "moderate_thread" in thread_perms %} {% if not forloop.first %} {% blocktrans %}Delete{% endblocktrans %} {% endif %} {% endif %}
{% if post.modified > post.created %}

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

{% endif %}
{% 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 %}