mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-26 04:21:45 +02:00
Remove duplicate buttons from nav header, use sidebar instead
This commit is contained in:
parent
96e37b9730
commit
e9d2b5ced3
@ -4,10 +4,11 @@
|
|||||||
|
|
||||||
<a class="navbar-brand" href="{% url 'helpdesk:home' %}">{% trans 'Helpdesk' %}</a>
|
<a class="navbar-brand" href="{% url 'helpdesk:home' %}">{% trans 'Helpdesk' %}</a>
|
||||||
|
|
||||||
<button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
|
<button class="btn btn-link btn-sm text-white order-1 order-sm-0 mr-auto" id="sidebarToggle" href="#">
|
||||||
<i class="fas fa-bars"></i>
|
<i class="fas fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{% if helpdesk_settings.HELPDESK_NAVIGATION_ENABLED and user.is_authenticated or user|is_helpdesk_staff %}
|
||||||
<!-- Navbar Search -->
|
<!-- Navbar Search -->
|
||||||
<form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0" id='searchform' method='get' action="{% url 'helpdesk:list' %}">
|
<form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0" id='searchform' method='get' action="{% url 'helpdesk:list' %}">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@ -21,8 +22,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
<!-- Navbar -->
|
<!-- Navbar -->
|
||||||
<ul class="navbar-nav ml-auto ml-md-0">
|
<ul class="navbar-nav mr-md-0">
|
||||||
{% if helpdesk_settings.HELPDESK_NAVIGATION_ENABLED and user.is_authenticated or user|is_helpdesk_staff %}
|
{% if helpdesk_settings.HELPDESK_NAVIGATION_ENABLED and user.is_authenticated or user|is_helpdesk_staff %}
|
||||||
{% if user_saved_queries_ %}
|
{% if user_saved_queries_ %}
|
||||||
<li class="nav-item dropdown no-arrow mx-1">
|
<li class="nav-item dropdown no-arrow mx-1">
|
||||||
@ -69,21 +71,6 @@
|
|||||||
<i class="fas fa-user-circle fa-fw"></i> {% trans "Submit a Ticket" %}
|
<i class="fas fa-user-circle fa-fw"></i> {% trans "Submit a Ticket" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
|
||||||
{% if helpdesk_settings.HELPDESK_SUBMIT_A_TICKET_PUBLIC %}
|
|
||||||
<li class="nav-item dropdown no-arrow">
|
|
||||||
<a class="nav-link dropdown-toggle" href="{% url 'helpdesk:submit' %}" id="userDropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<i class="fas fa-plus-circle fa-fw"></i> {% trans "Submit a Ticket" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% if helpdesk_settings.HELPDESK_KB_ENABLED %}
|
|
||||||
<li class="nav-item dropdown no-arrow">
|
|
||||||
<a class="nav-link dropdown-toggle" href="{% url 'helpdesk:kb_index' %}" id="userDropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<i class="fas fa-fw fa-database"></i> {% trans "Knowledgebase" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not request.path == '/helpdesk/login/' or user.is_authenticated %}
|
{% if not request.path == '/helpdesk/login/' or user.is_authenticated %}
|
||||||
<li class="nav-item dropdown no-arrow">
|
<li class="nav-item dropdown no-arrow">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user