diff options
author | Jack Morgan <jack.morgan@intel.com> | 2016-08-22 14:13:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-22 14:13:24 +0000 |
commit | 33ec3fd340127c0aad9635fd06ac1959a6aec5f3 (patch) | |
tree | 5ee14933ba18f06bf125652516a09f870908f0e5 /tools/pharos-dashboard/templates/dashboard/dev_pods.html | |
parent | c121ae90322dac5cf72e98450c89ff7e5131b20c (diff) | |
parent | 66eb4d851e63d20031502ec0c96aaabe34c6fd32 (diff) |
Merge "Implement periodic tasks"
Diffstat (limited to 'tools/pharos-dashboard/templates/dashboard/dev_pods.html')
-rw-r--r-- | tools/pharos-dashboard/templates/dashboard/dev_pods.html | 19 |
1 files changed, 10 insertions, 9 deletions
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 %} <thead> @@ -14,28 +15,28 @@ </tr> </thead> <tbody> - {% for resource in dev_pods %} + {% for pod, booking in dev_pods %} <tr> <th> - <a target='_blank' href={{ resource.url }}>{{ resource.name }}</a> + <a target='_blank' href={{ pod.url }}>{{ pod.name }}</a> </th> <th> - <a target='_blank' href={{ resource.slaveurl }}>{{ resource.slavename }}</a> + <a target='_blank' href={{ pod.slave.url }}>{{ pod.slave.name }}</a> </th> <th> - {{ resource.current_booking.user.username }} + {{ booking.user.username }} </th> <th> - {{ resource.current_booking.end }} + {{ booking.end }} </th> <th> - {{ resource.current_booking.purpose }} + {{ booking.purpose }} </th> - <th style="background-color:{{ resource.status_color }}"> - {{ resource.status }} + <th style="background-color:{{ pod.slave.status | jenkins_status_color }}"> + {{ pod.slave.status }} </th> <th> - <a href="{% url 'booking:create' resource_id=resource.id %}" class="btn btn-primary"> + <a href="{% url 'booking:create' resource_id=pod.id %}" class="btn btn-primary"> Book </a> </th> |