mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 17:48:26 -04:00
We can filter all notifications by status already. This commit reuses the same code to filter the notifications for a job by status. This means that, visually we can show the count on a job the same as we do for all notifications, which is similar to how we show the counts on the dashboard, so hopefully it feels like a bit more of a solid thing. This also applies to CSV downloads and AJAX updates, which will inherit any filtering that their parent page has applied.
17 lines
407 B
HTML
17 lines
407 B
HTML
{% from "components/pill.html" import pill %}
|
|
|
|
<div
|
|
{% if not finished %}
|
|
data-module="update-content"
|
|
data-resource="{{url_for(".view_job_updates", service_id=current_service.id, job_id=job.id, status=status, help=request.args.get('help', 0))}}"
|
|
data-key="counts"
|
|
aria-live="polite"
|
|
{% endif %}
|
|
>
|
|
|
|
<div class="bottom-gutter">
|
|
{{ pill('Status', counts, status) }}
|
|
</div>
|
|
|
|
</div>
|