{% extends 'helpdesk/base.html' %} {% load bootstrap %} {% load restructuredtext %} {% block breadcrumb_items %} {{ block.super }} Helpdesk {% endblock %} {% block pagetitle %}: Helpdesk{% endblock pagetitle %} {% block content %}

Helpdesk

{% if request.user.ticket_set.all|length > 0 %}

Tickets you opened

{% include 'helpdesk/_tickets_tablist.html' with tickets=request.user.ticket_set.all %}
{% endif %} {% if request.user.assigned_tickets.all|length > 0 %}

Tickets assigned to you

{% include 'helpdesk/_tickets_tablist.html' with tickets=request.user.assigned_tickets %}
{% endif %} {% if object_list.all|length > 0 %}

Other Tickets in your Queues [please feel free to pick up or handle further]

{% include 'helpdesk/_tickets_tablist.html' with tickets=object_list %}
{% endif %} {% if managed_queues.all|length > 0 %}

Queues for which you are in managing group

{% for queue in managed_queues %} {% include 'helpdesk/queue_card.html' with queue=queue %} {% endfor %}
{% endif %} {% if visible_queues.all|length > 0 %}

Queues which you can view

{% for queue in visible_queues %} {% include 'helpdesk/queue_card.html' with queue=queue %} {% endfor %}
{% endif %}
{% endblock content %}