{% extends "base.html" %} {% block content %}

Ticket {{ ticket.ticket_code or ticket.id }}

{{ ticket.subject }}

Status: {{ ticket.status }}
Priority: {{ ticket.priority }}
Brand: {{ ticket.brand.name if ticket.brand else '-' }}
Campaign: {{ ticket.campaign.title if ticket.campaign else '-' }}
Description:
{{ ticket.description }}
Comments
{% for c in comments %}
{{ c.user.full_name or c.user.username if c.user else 'User' }} {{ c.created_at.strftime('%d %b %Y %I:%M %p') if c.created_at else '-' }}
{% if c.status_after %}
Status: {{ c.status_after }}
{% endif %}
{{ c.comment_text }}
{% else %}
No comments yet.
{% endfor %}
Add Comment
{% endblock %}