mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
f5401b6887
@ -46,11 +46,11 @@ Adding To Your Django Project
|
||||
|
||||
2. Make sure django-helpdesk is accessible via ``urls.py``. Add the following line to ``urls.py``::
|
||||
|
||||
(r'helpdesk/', include('helpdesk.urls')),
|
||||
url(r'helpdesk/', include('helpdesk.urls')),
|
||||
|
||||
Note that you can change 'helpdesk/' to anything you like, such as 'support/' or 'help/'. If you want django-helpdesk to be available at the root of your site (for example at http://support.mysite.tld/) then the line will be as follows::
|
||||
|
||||
(r'', include('helpdesk.urls')),
|
||||
url(r'', include('helpdesk.urls')),
|
||||
|
||||
This line will have to come *after* any other lines in your urls.py such as those used by the Django admin.
|
||||
|
||||
|
@ -43,7 +43,7 @@ noop = lambda *args, **kwargs: None
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('helpdesk', '0002_socks_proxy'),
|
||||
('helpdesk', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
@ -1,32 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('helpdesk', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='queue',
|
||||
name='socks_proxy_host',
|
||||
field=models.GenericIPAddressField(help_text='Socks proxy IP address. Default: 127.0.0.1', null=True, verbose_name='Socks Proxy Host', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='queue',
|
||||
name='socks_proxy_port',
|
||||
field=models.IntegerField(help_text='Socks proxy port number. Default: 9150 (default TOR port)', null=True, verbose_name='Socks Proxy Port', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='queue',
|
||||
name='socks_proxy_type',
|
||||
field=models.CharField(choices=[(b'socks4', 'SOCKS4'), (b'socks5', 'SOCKS5')], max_length=8, blank=True, help_text='SOCKS4 or SOCKS5 allows you to proxy your connections through a SOCKS server.', null=True, verbose_name='Socks Proxy Type'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
@ -36,7 +36,7 @@ def unload_fixture(apps, schema_editor):
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('helpdesk', '0003_populate_usersettings'),
|
||||
('helpdesk', '0002_populate_usersettings'),
|
||||
]
|
||||
|
||||
operations = [
|
@ -1,6 +1,7 @@
|
||||
{% load i18n %}
|
||||
{% load saved_queries %}
|
||||
{% load load_helpdesk_settings %}
|
||||
{% load static from staticfiles %}
|
||||
{% with request|load_helpdesk_settings as helpdesk_settings %}
|
||||
{% with user|saved_queries as user_saved_queries_ %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
@ -9,11 +10,11 @@
|
||||
<title>{% block helpdesk_title %}Helpdesk{% endblock %} :: {% trans "Powered by django-helpdesk" %}</title>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src='{{ STATIC_URL }}helpdesk/jquery-ui-1.8.9.custom.min.js' type='text/javascript' language='javascript'></script>
|
||||
<link rel='stylesheet' href='{{ STATIC_URL }}helpdesk/helpdesk-extend.css' type='text/css' media="screen" >
|
||||
<script src='{% static "helpdesk/jquery-ui-1.8.9.custom.min.js" %}' type='text/javascript' language='javascript'></script>
|
||||
<link rel='stylesheet' href='{% static "helpdesk/helpdesk-extend.css" %}' type='text/css' media="screen" >
|
||||
|
||||
<!--link rel='stylesheet' href='{{ STATIC_URL }}helpdesk/helpdesk-print.css' type='text/css' media="print" /-->
|
||||
<!--link rel='stylesheet' href='{{ STATIC_URL }}helpdesk/jquery-smoothness-theme/jquery-ui-1.8.9.custom.css' type='text/css' /-->
|
||||
<!--link rel='stylesheet' href='{% static "helpdesk/helpdesk-print.css" %}' type='text/css' media="print" /-->
|
||||
<!--link rel='stylesheet' href='{% static "helpdesk/jquery-smoothness-theme/jquery-ui-1.8.9.custom.css" %}' type='text/css' /-->
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel='alternate' href='{% url 'helpdesk_rss_user' user.get_username %}' type='application/rss+xml' title='{% trans "My Open Tickets" %}' />
|
||||
@ -58,7 +59,7 @@
|
||||
|
||||
<div id='footer' class="row">
|
||||
<div class="col-md-2">{% include "helpdesk/attribution.html" %}</div>
|
||||
<div class="col-md-2"><a href='{% url 'helpdesk_rss_index' %}'><img src='{{ STATIC_URL }}helpdesk/rss_icon.png' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "RSS Feeds" %}' border='0' />{% trans "RSS Feeds" %}</a></div>
|
||||
<div class="col-md-2"><a href='{% url 'helpdesk_rss_index' %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "RSS Feeds" %}' border='0' />{% trans "RSS Feeds" %}</a></div>
|
||||
<div class="col-md-2"><a href='{% url 'helpdesk_api_help' %}'>{% trans "API" %}</a></div>
|
||||
{% if user.is_superuser %}<div class="col-md-2"><a href='{% url 'helpdesk_system_settings' %}'>{% trans "System Settings" %}</a></div>{% endif %}
|
||||
</div>
|
||||
|
@ -1,6 +1,7 @@
|
||||
{% load i18n %}
|
||||
{% load url from future %}
|
||||
{% load load_helpdesk_settings %}
|
||||
{% load static from staticfiles %}
|
||||
{% with request|load_helpdesk_settings as helpdesk_settings %}
|
||||
<html>
|
||||
<head>
|
||||
@ -8,7 +9,7 @@
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel='stylesheet' href='{{ STATIC_URL }}helpdesk/helpdesk-extend.css' type='text/css' />
|
||||
<link rel='stylesheet' href='{% static "helpdesk/helpdesk-extend.css" %}' type='text/css' />
|
||||
{% block helpdesk_head %}{% endblock %}
|
||||
</head>
|
||||
<body id="helpdesk-body">
|
||||
|
@ -1013,7 +1013,7 @@ def run_report(request, report):
|
||||
if report == 'userpriority':
|
||||
title = _('User by Priority')
|
||||
col1heading = _('User')
|
||||
possible_options = [t[1].__str__() for t in Ticket.PRIORITY_CHOICES]
|
||||
possible_options = [t[1].title() for t in Ticket.PRIORITY_CHOICES]
|
||||
charttype = 'bar'
|
||||
|
||||
elif report == 'userqueue':
|
||||
@ -1025,7 +1025,7 @@ def run_report(request, report):
|
||||
elif report == 'userstatus':
|
||||
title = _('User by Status')
|
||||
col1heading = _('User')
|
||||
possible_options = [s[1].__str__() for s in Ticket.STATUS_CHOICES]
|
||||
possible_options = [s[1].title() for s in Ticket.STATUS_CHOICES]
|
||||
charttype = 'bar'
|
||||
|
||||
elif report == 'usermonth':
|
||||
@ -1037,13 +1037,13 @@ def run_report(request, report):
|
||||
elif report == 'queuepriority':
|
||||
title = _('Queue by Priority')
|
||||
col1heading = _('Queue')
|
||||
possible_options = [t[1].__str__() for t in Ticket.PRIORITY_CHOICES]
|
||||
possible_options = [t[1].title() for t in Ticket.PRIORITY_CHOICES]
|
||||
charttype = 'bar'
|
||||
|
||||
elif report == 'queuestatus':
|
||||
title = _('Queue by Status')
|
||||
col1heading = _('Queue')
|
||||
possible_options = [s[1].__str__() for s in Ticket.STATUS_CHOICES]
|
||||
possible_options = [s[1].title() for s in Ticket.STATUS_CHOICES]
|
||||
charttype = 'bar'
|
||||
|
||||
elif report == 'queuemonth':
|
||||
|
@ -90,6 +90,7 @@ class QuickDjangoTest(object):
|
||||
INSTALLED_APPS = self.INSTALLED_APPS + self.apps,
|
||||
MIDDLEWARE_CLASSES = self.MIDDLEWARE_CLASSES,
|
||||
ROOT_URLCONF = self.apps[0] + '.urls',
|
||||
STATIC_URL = '/static/'
|
||||
)
|
||||
|
||||
if django.VERSION >= (1, 7):
|
||||
|
Loading…
Reference in New Issue
Block a user