forked from CGM_Public/pretix_original
Moved static files and celery.py
This commit is contained in:
20
src/pretix/static/pretixcontrol/js/ui/quota.js
Normal file
20
src/pretix/static/pretixcontrol/js/ui/quota.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*globals $, Morris, gettext*/
|
||||
$(function () {
|
||||
if (!$("#quota-stats").length) {
|
||||
return;
|
||||
}
|
||||
|
||||
$(".chart").css("height", "250px");
|
||||
new Morris.Donut({
|
||||
element: 'quota_chart',
|
||||
data: JSON.parse($("#quota-chart-data").html()),
|
||||
resize: true,
|
||||
colors: [
|
||||
'#0044CC', // paid
|
||||
'#0088CC', // pending
|
||||
'#BD362F', // vouchers
|
||||
'#F89406', // carts
|
||||
'#51A351' // available
|
||||
]
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user