{% extends "tickets/base.html" %} {% load static %} {% block content %}

{{ ticket.title }}

{% if ticket.note %}
{{ ticket.note|safe|urlize|linebreaks }}
{% endif %}
  • In list: {{ ticket.ticket_list }}
  • Created by: {{ ticket.created_by.username }}
  • Assigned to: {% if ticket.assigned_to.username %}{{ ticket.assigned_to.username }}{% else %}Anyone{% endif %}
  • Type: {{ ticket.get_ticket_type_display }}
  • Status: {{ ticket.get_status_display }}
  • Priority: {{ ticket.priority }}
  • Created at: {{ ticket.created_at }}
  • Due date: {{ ticket.due_date }}
  • Updated at: {{ ticket.updated_at }}
{% if available_statuses %}
{% csrf_token %}
{% else %}

No available statuses

{% endif %} {% if user.is_staff or user.is_superuser or ticket.created_by == user %}
{% endif %}

Attachments

{% if ticket.attachment_set.count %}
{% for attachment in attachments %} {% endfor %}
File Uploaded By Remove
{{ attachment.filename }} {{ attachment.timestamp }} {{ attachment.added_by.username }} {% if user.is_staff or user.is_superuser or attachment.added_by == user or ticket.created_by == user %}
{% csrf_token %}
{% endif %}
{% endif %}
{% csrf_token %}

Discussion

{% csrf_token %}
{% if comment_list %} {% for comment in comment_list %}
{{ comment.author_username }}
{{ comment.body|safe|urlize|linebreaks }}
{{ comment.author_email }} {{ comment.date }}
{% endfor %} {% endif %} {% endblock %} {% block extra_js %} {% endblock extra_js %}