diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 4be31409..050d0c03 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -31,18 +31,9 @@ HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = getattr(settings, 'HELPDESK_REDIRECT_TO_ # show knowledgebase links? HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True) -# show knowledgebase links on staff view? -HELPDESK_KB_ENABLED_STAFF = getattr(settings, 'HELPDESK_KB_ENABLED_STAFF', False) - # show extended navigation by default, to all users, irrespective of staff status? HELPDESK_NAVIGATION_ENABLED = getattr(settings, 'HELPDESK_NAVIGATION_ENABLED', False) -# allow local customisation, add the contents of a template file to the nav bar. -HELPDESK_NAVIGATION_CUSTOM_EXTEND = getattr(settings, 'HELPDESK_NAVIGATION_CUSTOM_EXTEND', False) - -# show 'stats' link in navigation bar? -HELPDESK_NAVIGATION_STATS_ENABLED = getattr(settings, 'HELPDESK_NAVIGATION_STATS_ENABLED', True) - # show dropdown list of languages that ticket comments can be translated into? HELPDESK_TRANSLATE_TICKET_COMMENTS = getattr(settings, 'HELPDESK_TRANSLATE_TICKET_COMMENTS', False) diff --git a/helpdesk/templates/helpdesk/navigation.html b/helpdesk/templates/helpdesk/navigation.html index dc86a022..371babd3 100644 --- a/helpdesk/templates/helpdesk/navigation.html +++ b/helpdesk/templates/helpdesk/navigation.html @@ -16,12 +16,8 @@
  • {% trans "Dashboard" %}
  • {% trans "Tickets" %}
  • {% trans "New Ticket" %}
  • - {% if helpdesk_settings.HELPDESK_NAVIGATION_STATS_ENABLED %} -
  • {% trans "Stats" %}
  • - {% endif %} - {% if helpdesk_settings.HELPDESK_KB_ENABLED_STAFF %} -
  • {% trans "Knowledgebase" %}
  • - {% endif %} +
  • {% trans "Stats" %}
  • +
  • {% trans "Knowledgebase" %}
  • {% if user_saved_queries_ %} {% endif %} - {% if helpdesk_settings.HELPDESK_NAVIGATION_CUSTOM_EXTEND and user.is_superuser %} - {% include helpdesk_settings.HELPDESK_NAVIGATION_CUSTOM_EXTEND %} - {% endif %}
  • {% trans "Logout" %} ({{ user.username }})
  • @@ -56,8 +49,7 @@ {% endif %} {% else %} - - + {# Public menu #} {% endif %} - \ No newline at end of file +