Show upcoming jobs on the dashboard

On the dashboard:
- adds a new ‘in the next 24 hours’ section to the dashboard which lists
  upcoming jobs
- tweaks some spacing on the dashboard so that it doesn’t look like too
  much of a mess
- don’t show scheduled jobs in the table of normal jobs

On the jobs page:
- don’t show scheduled jobs
This commit is contained in:
Chris Hill-Scott
2016-08-09 10:39:57 +01:00
parent 3d8d160d3e
commit 4342b721f1
14 changed files with 165 additions and 40 deletions

View File

@@ -158,7 +158,8 @@ def job_json(
notification_count=1,
notifications_sent=1,
notifications_requested=1,
job_status='Delivered'
job_status='Delivered',
scheduled_for=''
):
if job_id is None:
job_id = str(generate_uuid())
@@ -180,8 +181,10 @@ def job_json(
'created_by': created_by_json(
created_by.id,
created_by.name,
created_by.email_address)
}
created_by.email_address
),
'scheduled_for': scheduled_for
}
return data