mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
0068eccbf4
* Updated jQuery to 1.2.6 * Add jQuery UI 1.6b for interface effects as needed * 'Smoothness' theme from ThemeRoller.com added. * Clean up 'Filter' dialog on Ticket List, long way to go still. * Uses tabs to save a query or load a saved query * Lots of misuse of space here, can be cleaned up somewhat still. * Add ability for users to save filters/queries * Saved queries can be shared, so other users can use them * Users can run saved queries instead of re-filtering * Filter mechanism in Ticket List had to be reworked significantly * Merged 3rd party licenses into LICENSE.3RDPARTY * Updated messages files for EN locale To update, ensure you run './manage.py syncdb' to add the SavedSearch table.
121 lines
3.0 KiB
Python
121 lines
3.0 KiB
Python
"""
|
|
Jutda Helpdesk - A Django powered ticket tracker for small enterprise.
|
|
|
|
(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.
|
|
|
|
urls.py - Mapping of URL's to our various views. Note we always used NAMED
|
|
views for simplicity in linking later on.
|
|
"""
|
|
|
|
from django.conf.urls.defaults import *
|
|
from django.contrib.auth.decorators import login_required
|
|
from django.contrib.syndication.views import feed as django_feed
|
|
|
|
from helpdesk.views.feeds import feed_setup
|
|
|
|
urlpatterns = patterns('helpdesk.views.staff',
|
|
url(r'^dashboard/$',
|
|
'dashboard',
|
|
name='helpdesk_dashboard'),
|
|
|
|
url(r'^tickets/$',
|
|
'ticket_list',
|
|
name='helpdesk_list'),
|
|
|
|
url(r'^tickets/submit/$',
|
|
'create_ticket',
|
|
name='helpdesk_submit'),
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/$',
|
|
'view_ticket',
|
|
name='helpdesk_view'),
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/update/$',
|
|
'update_ticket',
|
|
name='helpdesk_update'),
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/delete/$',
|
|
'delete_ticket',
|
|
name='helpdesk_delete'),
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/hold/$',
|
|
'hold_ticket',
|
|
name='helpdesk_hold'),
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/unhold/$',
|
|
'unhold_ticket',
|
|
name='helpdesk_unhold'),
|
|
|
|
url(r'^raw/(?P<type>\w+)/$',
|
|
'raw_details',
|
|
name='helpdesk_raw'),
|
|
|
|
url(r'^rss/$',
|
|
'rss_list',
|
|
name='helpdesk_rss_index'),
|
|
|
|
url(r'^reports/$',
|
|
'report_index',
|
|
name='helpdesk_report_index'),
|
|
|
|
url(r'^reports/(?P<report>\w+)/$',
|
|
'run_report',
|
|
name='helpdesk_run_report'),
|
|
|
|
url(r'^save_query/$',
|
|
'save_query',
|
|
name='helpdesk_savequery'),
|
|
|
|
url(r'^delete_query/(?P<id>[0-9]+)/$',
|
|
'delete_saved_query',
|
|
name='helpdesk_delete_query'),
|
|
)
|
|
|
|
urlpatterns += patterns('helpdesk.views.public',
|
|
url(r'^$',
|
|
'homepage',
|
|
name='helpdesk_home'),
|
|
|
|
url(r'^view/$',
|
|
'view_ticket',
|
|
name='helpdesk_public_view'),
|
|
)
|
|
|
|
urlpatterns += patterns('',
|
|
url(r'^rss/(?P<url>.*)/$',
|
|
login_required(django_feed),
|
|
{'feed_dict': feed_setup},
|
|
name='helpdesk_rss'),
|
|
|
|
url(r'^api/(?P<method>[a-z_-]+)/$',
|
|
'helpdesk.views.api.api',
|
|
name='helpdesk_api'),
|
|
|
|
url(r'^api/$',
|
|
'django.views.generic.simple.direct_to_template',
|
|
{'template': 'helpdesk/api_help.html',},
|
|
name='helpdesk_api_help'),
|
|
|
|
url(r'^login/$',
|
|
'django.contrib.auth.views.login',
|
|
name='login'),
|
|
|
|
url(r'^logout/$',
|
|
'django.contrib.auth.views.logout',
|
|
name='logout'),
|
|
)
|
|
|
|
urlpatterns += patterns('helpdesk.views.kb',
|
|
url(r'^kb/$',
|
|
'index', name='helpdesk_kb_index'),
|
|
|
|
url(r'^kb/(?P<slug>[A-Za-z_-]+)/$',
|
|
'category', name='helpdesk_kb_category'),
|
|
|
|
url(r'^kb/(?P<item>[0-9]+)/$',
|
|
'item', name='helpdesk_kb_item'),
|
|
|
|
url(r'^kb/(?P<item>[0-9]+)/vote/$',
|
|
'vote', name='helpdesk_kb_vote'),
|
|
)
|