mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 22:28:25 -04:00
Make dashboard stats update dynamically
https://www.pivotaltracker.com/story/show/115874485 This uses the same component as on the jobs page to make a partial section of the page update itself periodically.
This commit is contained in:
@@ -13,7 +13,15 @@
|
||||
{% if not jobs %}
|
||||
{% include 'views/dashboard/get-started.html' %}
|
||||
{% else %}
|
||||
{% include 'views/dashboard/today.html' %}
|
||||
|
||||
<div
|
||||
data-module="update-content"
|
||||
data-resource="{{url_for(".service_dashboard_updates", service_id=service_id)}}"
|
||||
data-key="today"
|
||||
>
|
||||
{% include 'views/dashboard/today.html' %}
|
||||
</div>
|
||||
|
||||
{% include 'views/dashboard/jobs.html' %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user