mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-29 10:09:37 +01:00
Split sidebar button into All Tickets and Saved Queries
This commit is contained in:
parent
696d10db12
commit
4e1257c68e
@ -9,15 +9,18 @@
|
|||||||
<span>{% trans "Dashboard" %}</span>
|
<span>{% trans "Dashboard" %}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="{% url 'helpdesk:list' %}">
|
||||||
|
<i class="fas fa-fw fa-tasks"></i>
|
||||||
|
<span>{% trans "All Tickets" %}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="ticketsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="ticketsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="fas fa-fw fa-tasks"></i>
|
<i class="fas fa-fw fa-search"></i>
|
||||||
<span>Tickets</span>
|
<span>{% trans "Saved Queries" %}</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu" aria-labelledby="ticketsDropdown">
|
<div class="dropdown-menu" aria-labelledby="ticketsDropdown">
|
||||||
<a class="dropdown-item" href="{% url 'helpdesk:list' %}">{% trans "All Tickets" %}</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<h6 class="dropdown-header">Saved Queries:</h6>
|
|
||||||
{% if user_saved_queries_ %}
|
{% if user_saved_queries_ %}
|
||||||
{% for q in user_saved_queries_ %}
|
{% for q in user_saved_queries_ %}
|
||||||
<a class="dropdown-item" href="{% url 'helpdesk:list' %}?saved_query={{ q.id }}">{{ q.title }}
|
<a class="dropdown-item" href="{% url 'helpdesk:list' %}?saved_query={{ q.id }}">{{ q.title }}
|
||||||
|
Loading…
Reference in New Issue
Block a user