From 66eb4d851e63d20031502ec0c96aaabe34c6fd32 Mon Sep 17 00:00:00 2001 From: maxbr Date: Fri, 19 Aug 2016 17:11:58 +0200 Subject: Implement periodic tasks JIRA: RELENG-12 The dashboard is now querying jenkins periodically and saving the results in the database. This fixes delays that were caused by calling the jenkins API. Signed-off-by: maxbr --- .../templates/dashboard/dev_pods.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'tools/pharos-dashboard/templates/dashboard/dev_pods.html') diff --git a/tools/pharos-dashboard/templates/dashboard/dev_pods.html b/tools/pharos-dashboard/templates/dashboard/dev_pods.html index f08e1d1f..532a3a11 100644 --- a/tools/pharos-dashboard/templates/dashboard/dev_pods.html +++ b/tools/pharos-dashboard/templates/dashboard/dev_pods.html @@ -1,5 +1,6 @@ {% extends "dashboard/table.html" %} {% load staticfiles %} +{% load jenkins_filters %} {% block table %} @@ -14,28 +15,28 @@ - {% for resource in dev_pods %} + {% for pod, booking in dev_pods %} - {{ resource.name }} + {{ pod.name }} - {{ resource.slavename }} + {{ pod.slave.name }} - {{ resource.current_booking.user.username }} + {{ booking.user.username }} - {{ resource.current_booking.end }} + {{ booking.end }} - {{ resource.current_booking.purpose }} + {{ booking.purpose }} - - {{ resource.status }} + + {{ pod.slave.status }} - + Book -- cgit 1.2.3-korg