{% load custom_tags_and_filters %} {% for i in past %} {% if i|class_name == "Task" %}
{% if i.force_shutdown %} {% else %} {% endif %}
{% if i.problem_category %}

{{ i.problem_category }}

{% endif %} {{ i.problem_description }}
Created by {{ i.creator }} on {{ i.creation_time }}.
{% if i.force_shutdown %} The tool was shut down because of this task.
{% endif %} {% if user.is_staff %} You can reopen this task if it was mistakenly resolved. {% endif %}
{% if i.progress_description %}

Progress updates

{{ i.progress_description|linebreaksbr }}
{% endif %} {% if i.task_images %}
images:
{% endif %}
{% if i.cancelled %}

Cancelled

On {{ i.resolution_time }} by {{ i.resolver }}.
{% elif i.resolved %}

Resolved {{ i.resolution_category|default_if_none:"" }}

On {{ i.resolution_time }} by {{ i.resolver }}.
{{ i.resolution_description|linebreaksbr|default_if_none:"" }}
{% endif %}
{% endif %} {% if i|class_name == "Comment" %}
{{ i.content }}
{{ i.author }} wrote this comment on {{ i.creation_date }}.
{% if i.hide_date %} {{ i.hidden_by }} hid the comment on {{ i.hide_date }}. {% endif %}
{% endif %} {% empty %} No tasks or comments were created between these dates. {% endfor %}