{% load humanize %} {% load display_tags %} {% load authorization_tags %}

Notes

{% if object|has_object_permission:"Note_Add" %}
{% csrf_token %} {% include "dojo/form_fields.html" with form=form %}
{% endif %}
{% for note in notes %}
{% if user.username == note.author.username or object|has_object_permission:"Note_Delete" or user.is_superuser %}
{% csrf_token %}
{% endif %} {% if user.username == note.author.username or object|has_object_permission:"Note_Edit" %}
{% csrf_token %}
{% endif %} {% if user.username == note.author.username or object|has_object_permission:"Note_View_History" %}
{% csrf_token %}
{% endif %}
{{ note.author }} commented {{ note.date }}
{% if note.edited %}
{{ note.editor }} edited {{ note.edit_time }}
{% endif %} {% if note.private %}
(will not appear in report)
{% endif %}
{% if note.note_type != None %} Note type : {{ note.note_type }}

{% endif %} {{ note|linebreaks }}
{% endfor %}