mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Merge pull request #236 from alphagov/show-completion-of-job
Show how complete a job is on dashboard
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
jobs,
|
||||
caption="Recent text messages",
|
||||
empty_message='You haven’t sent any text messages yet',
|
||||
field_headings=['Job', 'Created', right_aligned_field_heading('Status')]
|
||||
field_headings=['Job', 'Created', right_aligned_field_heading('completion')]
|
||||
) %}
|
||||
{% call field() %}
|
||||
<a href="{{ url_for('.view_job', service_id=service_id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
||||
@@ -65,7 +65,7 @@
|
||||
{{ item.created_at|format_datetime }}
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
{{ item.status }}
|
||||
{{ (item.notifications_sent / item.notification_count * 100)|round|int }}%
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
{% if more_jobs_to_show %}
|
||||
|
||||
@@ -110,6 +110,7 @@ def job_json():
|
||||
'file_name': '{}.csv'.format(job_id),
|
||||
'created_at': created_at,
|
||||
'notification_count': 1,
|
||||
'notifications_sent': 1,
|
||||
'status': ''
|
||||
}
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user