feat(ticket): disable timeline

This commit is contained in:
Daniele Scasciafratte 2022-04-15 18:48:21 +02:00
parent 935b95ecc2
commit 5792587e3e
4 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,8 @@ HELPDESK_SUBMIT_A_TICKET_PUBLIC = True
# Should the Knowledgebase be enabled?
HELPDESK_KB_ENABLED = True
HELPDESK_TICKETS_TIMELINE_ENABLED = True
# Allow users to change their passwords
HELPDESK_SHOW_CHANGE_PASSWORD = True

View File

@ -49,6 +49,9 @@ HELPDESK_ANON_ACCESS_RAISES_404 = getattr(settings,
# show knowledgebase links?
HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True)
# Disable Timeline on ticket list
HELPDESK_TICKETS_TIMELINE_ENABLED = getattr(settings, 'HELPDESK_TICKETS_TIMELINE_ENABLED', True)
# show extended navigation by default, to all users, irrespective of staff status?
HELPDESK_NAVIGATION_ENABLED = getattr(settings, 'HELPDESK_NAVIGATION_ENABLED', False)

View File

@ -33,6 +33,7 @@
{% block helpdesk_body %}
<div class="card">
{% if helpdesk_settings.HELPDESK_TICKETS_TIMELINE_ENABLED %}
<div class="card-header">
<ul class="nav nav-tabs">
<li class="nav-item" style="width: 200px;">
@ -54,6 +55,7 @@
</li>
</ul>
</div>
{% endif %}
<div class="card-body">
{{ search_message|safe }}
<div class="tab-content" id="myTabContent">

View File

@ -1167,6 +1167,7 @@ def ticket_list(request):
from_saved_query=saved_query is not None,
saved_query=saved_query,
search_message=search_message,
helpdesk_settings=helpdesk_settings,
))