{% load bootstrap %} {% load automarkup %} {% load scipost_extras %}
{{ ticket }} {% if ticket.concerning_object %}
Re: {{ ticket.concerning_object }}
{% endif %}
{% with classes=ticket.status_classes %} {% endwith %}
{% if ticket.assigned_to %} {% endif %}
Description {{ ticket.description|automarkup }}
Defined on {{ ticket.defined_on }}
Defined by {{ ticket.defined_by.first_name }} {{ ticket.defined_by.last_name }} ({{ ticket.defined_by.username }})
Priority {% for a in "x"|ljust:ticket.priority_level %} {% include 'bi/exclamation-square-fill.html' %} {% endfor %}  - {{ ticket.get_priority_display }}
Status {% with classes=ticket.status_classes %} {% endwith %} {{ ticket.get_status_display }}
Assigned to {{ ticket.assigned_to.get_full_name }} ({{ ticket.assigned_to.username }})
Followups
    {% for followup in ticket.followups.all %}
  • {{ followup.by.get_full_name }} on {{ followup.timestamp }}
    {{ followup.text|automarkup }}
  • {% empty %}
  • No followups have yet occurred
  • {% endfor %}
{% if ticket.is_open %} {% if request.user|is_in_group:ticket.queue.managing_group.name %} {% include 'bi/trash-fill.html' %} Delete {% include 'bi/pencil-square.html' %} Update {% if not ticket.assigned_to %} {% include 'bi/arrow-right-circle-fill.html' %} Assign this ticket {% else %} {% include 'bi/arrow-right-circle-fill.html' %} Reassign this ticket [currently: {{ ticket.assigned_to.username }}] {% endif %}

{% endif %} {% include 'bi/reply-fill.html' %} Reply/Followup {% include 'bi/check-square.html' %} Mark as resolved {% include 'bi/x-square-fill.html' %} Close this Ticket {% endif %}