From fe5c7135a6af55179db5e87976f177ab2282e996 Mon Sep 17 00:00:00 2001 From: Stefano Brentegani Date: Mon, 21 Jul 2014 18:44:54 +0200 Subject: [PATCH] exclude KB from navigation if HELPDESK_KB_ENABLED is False (fixes #223) --- helpdesk/templates/helpdesk/navigation.html | 2 ++ helpdesk/tests/__init__.py | 1 + helpdesk/tests/helpers.py | 33 ++++++++++++++++++ helpdesk/tests/navigation.py | 38 +++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 helpdesk/tests/helpers.py create mode 100644 helpdesk/tests/navigation.py diff --git a/helpdesk/templates/helpdesk/navigation.html b/helpdesk/templates/helpdesk/navigation.html index 371babd3..123b1bfa 100644 --- a/helpdesk/templates/helpdesk/navigation.html +++ b/helpdesk/templates/helpdesk/navigation.html @@ -17,7 +17,9 @@
  • {% trans "Tickets" %}
  • {% trans "New Ticket" %}
  • {% trans "Stats" %}
  • + {% if helpdesk_settings.HELPDESK_KB_ENABLED %}
  • {% trans "Knowledgebase" %}
  • + {% endif %} {% if user_saved_queries_ %}