forked from extern/django-helpdesk
added local nav extension via a specified template
This commit is contained in:
parent
f6a8c80755
commit
e7e2781d65
@ -48,6 +48,9 @@ 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)
|
||||
|
||||
|
@ -34,7 +34,10 @@
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li><a href='{% url 'logout' %}'><span class="glyphicon glyphicon-log-out"></span><span class="nav-text">{% trans "Logout" %}</span></a></li>
|
||||
{% if helpdesk_settings.HELPDESK_NAVIGATION_CUSTOM_EXTEND and user.is_superuser %}
|
||||
{% include helpdesk_settings.HELPDESK_NAVIGATION_CUSTOM_EXTEND %}
|
||||
{% endif %}
|
||||
<li><a href='{% url 'logout' %}'><span class="glyphicon glyphicon-log-out"></span><span class="nav-text">{% trans "Logout" %} ({{ user.username }})</span></a></li>
|
||||
</ul>
|
||||
|
||||
{% if not query %}
|
||||
|
Loading…
Reference in New Issue
Block a user