{% extends "aristotle_mdr/discussions/base.html" %} {% load humanize %} {% load aristotle_tags %} {% block title %}{{ post.title }}{% endblock %} {% block breadcrumbs %}
  • {{ post.workgroup }}
  • {{ post.title }}
  • {% endblock %} {% block discussions_header %}{{ post.title }}{% endblock %} {% block discussion_content %} {% if post.closed %}
    This discussion thread is now closed. {% if request.user|can_alter_post:post %} Reopen discussion {% endif %}
    {% endif %}
    {{ post.author }} Posted {{ post.created|naturaltime }} {% if post.edited %} , edited {{ post.modified|naturaltime }} {% endif %} {% if request.user|can_alter_post:post and post.active %} Edit Delete post and all comments Close {% endif %}
    {{ post.body|linebreaks }}
    {% if post.relatedItems.first %} {% endif %}
    {% for comment in post.comments.all %} {% if not comment.author %}
    System message: Posted {{ comment.created|naturaltime }}
    {{ comment.body|linebreaks }}
    {% else %}
    {{ comment.author }} Posted {{ comment.created|naturaltime }} {% if comment.modified %} , edited {{ comment.modified|naturaltime }} {% endif %} {% if request.user|can_alter_comment:comment and post.active %} Edit Delete comment {% endif %}
    {{ comment.body|linebreaks }}
    {% endif %} {% endfor %}
    {% if post.closed %}
    This discussion thread is now closed. {% if request.user|can_alter_post:post %} Reopen discussion {% endif %}
    {% else %}
    {% csrf_token %} {% include 'aristotle_mdr/discussions/comment_form.html' %} Close discussion
    {% endif %} {% endblock %}