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:
Chris Hill-Scott
2016-03-23 08:43:45 +00:00
parent bb08589875
commit 5c57f5b588
2 changed files with 25 additions and 2 deletions

View File

@@ -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 %}