{% if ticket.status == Status.OPEN %}
Close Ticket
{% if perms.django_support_lite.can_manage %}
Archive Ticket
{% endif %}
{% else %}
{% if ticket.status == Status.CLOSE %}
Reopen Ticket
{% endif %}
{% if ticket.status == Status.ARCHIVE and perms.django_support_lite.can_manage %}
Restore Ticket
{% endif %}
{% endif %}
{% if ticket.status == Status.ARCHIVE %}
{% include 'partials/stub.html' with text='Ticket in the archive and is only available to view.' %}
{% elif ticket.status == Status.CLOSE %}
{% include 'partials/stub.html' with text='The ticket is closed. You have to reopen it in order to continue discussion.' %}
{% else %}
{% endif %}
{% if ticket_messages %}