mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Use new API endpoint for scheduled job stats
Depends on: - [ ] https://github.com/alphagov/notifications-api/pull/2984
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
{% from "components/show-more.html" import show_more %}
|
||||
|
||||
<div class="ajax-block-container">
|
||||
{% if current_service.scheduled_jobs %}
|
||||
{% if current_service.scheduled_job_stats.count %}
|
||||
<h2 class="heading-medium heading-upcoming-jobs">
|
||||
In the next few days
|
||||
</h2>
|
||||
<a class="govuk-link govuk-link--no-visited-state banner-dashboard" href="{{ url_for('.uploads', service_id=current_service.id) }}">
|
||||
<span class="banner-dashboard-count">
|
||||
{{ current_service.scheduled_jobs|length }}
|
||||
{{ current_service.scheduled_job_stats.count }}
|
||||
</span>
|
||||
<span class="banner-dashboard-count-label">
|
||||
{% if current_service.scheduled_jobs|length == 1 %}
|
||||
{% if current_service.scheduled_job_stats.count == 1 %}
|
||||
file waiting to send
|
||||
{% else %}
|
||||
files waiting to send
|
||||
@@ -20,7 +20,7 @@
|
||||
</span>
|
||||
<span class="banner-dashboard-meta">
|
||||
sending starts
|
||||
{{ current_service.scheduled_jobs[-1].scheduled_for|format_datetime_relative }}
|
||||
{{ current_service.scheduled_job_stats.soonest_scheduled_for|format_datetime_relative }}
|
||||
</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user