diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 71: display an empty cell rather than None before a job has a device in job listings

Message ID 20110822054113.4039.93262.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Aug. 22, 2011, 5:41 a.m. UTC
------------------------------------------------------------
revno: 71
committer: Michael-Doyle Hudson <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Mon 2011-08-22 17:20:36 +1200
message:
  display an empty cell rather than None before a job has a device in job listings
modified:
  lava_scheduler_app/templates/lava_scheduler_app/alljobs.html
  lava_scheduler_app/templates/lava_scheduler_app/device.html
  lava_scheduler_app/templates/lava_scheduler_app/index.html


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/alljobs.html'
--- lava_scheduler_app/templates/lava_scheduler_app/alljobs.html	2011-08-04 09:28:39 +0000
+++ lava_scheduler_app/templates/lava_scheduler_app/alljobs.html	2011-08-22 05:20:36 +0000
@@ -24,7 +24,7 @@ 
     <tr>
       <td><a href="{% url lava_scheduler_app.views.job pk=job.pk %}">{{ job.id }}</a></td>
       <td>{{ job.get_status_display }}</td>
-      <td>{{ job.actual_device }}</td>
+      <td>{{ job.actual_device|default:'' }}</td>
       <td>{{ job.submitter }}</td>
       <td>{{ job.submit_time }}</td>
     </tr>

=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/device.html'
--- lava_scheduler_app/templates/lava_scheduler_app/device.html	2011-08-22 03:22:22 +0000
+++ lava_scheduler_app/templates/lava_scheduler_app/device.html	2011-08-22 05:20:36 +0000
@@ -70,7 +70,7 @@ 
     <tr>
       <td><a href="{% url lava_scheduler_app.views.job pk=job.pk %}">{{ job.id }}</a></td>
       <td>{{ job.get_status_display }}</td>
-      <td>{{ job.actual_device }}</td>
+      <td>{{ job.actual_device|default:'' }}</td>
       <td>{{ job.submitter }}</td>
       <td>{{ job.start_time }}</td>
       <td>{{ job.end_time|default:"not finished" }}</td>

=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/index.html'
--- lava_scheduler_app/templates/lava_scheduler_app/index.html	2011-08-22 03:24:30 +0000
+++ lava_scheduler_app/templates/lava_scheduler_app/index.html	2011-08-22 05:20:36 +0000
@@ -43,7 +43,7 @@ 
     <tr>
       <td><a href="{% url lava_scheduler_app.views.job pk=job.pk %}">{{ job.id }}</a></td>
       <td>{{ job.get_status_display }}</td>
-      <td>{{ job.actual_device }}</td>
+      <td>{{ job.actual_device|default:'' }}</td>
       <td>{{ job.submitter }}</td>
       <td>{{ job.submit_time }}</td>
     </tr>