diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 5e5cafc8c..03938f4fd 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -57,11 +57,24 @@ def service_dashboard(service_id): @login_required @user_has_permissions('view_activity', admin_override=True) def service_dashboard_updates(service_id): + dashboard_statistics = get_dashboard_statistics_for_service(service_id) return jsonify(**{ - 'today': render_template( - 'views/dashboard/today.html', - **get_dashboard_statistics_for_service(service_id) - ) + 'totals': render_template( + 'views/dashboard/_totals.html', + **dashboard_statistics + ), + 'template-statistics': render_template( + 'views/dashboard/template-statistics.html', + **dashboard_statistics + ), + 'jobs': render_template( + 'views/dashboard/_jobs.html', + **dashboard_statistics + ), + 'usage': render_template( + 'views/dashboard/_usage.html', + **dashboard_statistics + ), }) diff --git a/app/templates/partials/jobs/count.html b/app/templates/partials/jobs/count.html index a1ad9a0af..a9f91e093 100644 --- a/app/templates/partials/jobs/count.html +++ b/app/templates/partials/jobs/count.html @@ -1,16 +1,5 @@ {% from "components/pill.html" import pill %} -
Download as a CSV file @@ -45,5 +34,4 @@ {{ item.status|format_notification_status(item.template.template_type) }} {% endcall %} {% endcall %} -
- Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }} -
-+ Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }} +
diff --git a/app/templates/views/dashboard/_jobs.html b/app/templates/views/dashboard/_jobs.html index 79b523a7b..b414e4456 100644 --- a/app/templates/views/dashboard/_jobs.html +++ b/app/templates/views/dashboard/_jobs.html @@ -1,12 +1,12 @@ {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %} -{% from "components/big-number.html" import big_number %} +{% from "components/big-number.html" import big_number -%}- See all sent batch messages -
- {% endif %} -{% endif %} diff --git a/app/templates/views/jobs/job.html b/app/templates/views/jobs/job.html index 17059f702..74e01624e 100644 --- a/app/templates/views/jobs/job.html +++ b/app/templates/views/jobs/job.html @@ -28,10 +28,40 @@ )}} {% endif %} - {% include 'partials/jobs/status.html' %} +