mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-22 22:08:40 +01:00
new setting: HELPDESK_PREPEND_ORG_NAME
customize helpdesk name on a few pages, i.e., your organization, so that users know that they came to the right page.
This commit is contained in:
parent
1eb0760f32
commit
45620f96d0
@ -32,6 +32,9 @@ if type(DEFAULT_USER_SETTINGS) != type(dict()):
|
||||
# redirect to login page instead of the default homepage when users visits "/"?
|
||||
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = getattr(settings, 'HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT', False)
|
||||
|
||||
# customize helpdesk name on a few pages, i.e., your organization.
|
||||
HELPDESK_PREPEND_ORG_NAME = getattr(settings, 'HELPDESK_PREPEND_ORG_NAME', False)
|
||||
|
||||
# show knowledgebase links?
|
||||
HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "helpdesk/base.html" %}{% load i18n %}
|
||||
{% block helpdesk_title %}{% trans "Helpdesk Dashboard" %}{% endblock %}
|
||||
{% block helpdesk_title %}{{ helpdesk_settings.HELPDESK_PREPEND_ORG_NAME|default:'' }} {% trans "Helpdesk Dashboard" %}{% endblock %}
|
||||
{% block helpdesk_head %}
|
||||
<script type='text/javascript' language='javascript' src='{{ STATIC_URL }}helpdesk/hover.js'></script>
|
||||
{% endblock %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% with request|load_helpdesk_settings as helpdesk_settings %}
|
||||
<html>
|
||||
<head>
|
||||
<title>{% block helpdesk_title %}{% trans "Helpdesk" %}{% endblock %}</title>
|
||||
<title>{% block helpdesk_title %}{{ helpdesk_settings.HELPDESK_PREPEND_ORG_NAME|default:'' }} {% trans "Helpdesk" %}{% endblock %}</title>
|
||||
<script src='{{ STATIC_URL }}helpdesk/jquery-1.5.min.js' type='text/javascript' language='javascript'></script>
|
||||
<link rel='stylesheet' href='{{ STATIC_URL }}helpdesk/helpdesk.css' type='text/css' />
|
||||
{% block helpdesk_head %}{% endblock %}
|
||||
@ -11,7 +11,7 @@
|
||||
<body>
|
||||
<div id='container'>
|
||||
<div id='header'>
|
||||
<h1>{% trans "Helpdesk" %}</h1>
|
||||
<h1>{{ helpdesk_settings.HELPDESK_PREPEND_ORG_NAME|default:'' }} {% trans "Helpdesk" %}</h1>
|
||||
{% include "helpdesk/navigation.html" %}
|
||||
</div>
|
||||
<div id='body'>
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "helpdesk/public_base.html" %}{% load i18n %}
|
||||
{% block helpdesk_title %}{% trans "Helpdesk Login" %}{% endblock %}
|
||||
{% block helpdesk_title %}{{ helpdesk_settings.HELPDESK_PREPEND_ORG_NAME|default:'' }} {% trans "Helpdesk Login" %}{% endblock %}
|
||||
|
||||
{% block helpdesk_body %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user