mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 09:23:39 +01:00
feat(ticket): disable timeline
This commit is contained in:
parent
935b95ecc2
commit
5792587e3e
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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">
|
||||
|
@ -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,
|
||||
))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user