mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-18 03:40:02 +02:00
Migrate charts to jqPlot. Needs a bit of clean-up, especially separating out date & non-date reports.
This commit is contained in:
@@ -896,10 +896,13 @@ def run_report(request, report):
|
||||
|
||||
if report in ('queuemonth', 'usermonth'):
|
||||
chart_url = line_chart([columns] + data)
|
||||
charttype = 'date'
|
||||
elif report in ('queuestatus', 'queuepriority', 'userstatus', 'userpriority'):
|
||||
chart_url = bar_chart([columns] + data)
|
||||
charttype = 'bar'
|
||||
else:
|
||||
chart_url = ''
|
||||
charttype = ''
|
||||
|
||||
return render_to_response('helpdesk/report_output.html',
|
||||
RequestContext(request, {
|
||||
@@ -907,6 +910,7 @@ def run_report(request, report):
|
||||
'data': data,
|
||||
'chart': chart_url,
|
||||
'title': title,
|
||||
'charttype': charttype,
|
||||
}))
|
||||
run_report = staff_member_required(run_report)
|
||||
|
||||
|
Reference in New Issue
Block a user