Status: only display time on live changes
Time has no meaning for non-live changes. Really only the time
for the live change at the end of the list has any relevance.
The enqueue time is just repeated, and the ETA of 0 is just weird.
Don't display them for non-live changes.
Change-Id: I93f0fc5bedb6c8bca7128c6a1d06a447248cb9d8
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js
index 32c45d4..5e44205 100644
--- a/etc/status/public_html/jquery.zuul.js
+++ b/etc/status/public_html/jquery.zuul.js
@@ -316,9 +316,11 @@
var $enqueue_time = $('<small />').addClass('time')
.attr('title', 'Elapsed Time').html(enqueue_time);
- var $right = $('<div />')
- .addClass('col-xs-4 text-right')
- .append($remaining_time, $('<br />'), $enqueue_time);
+ var $right = $('<div />');
+ if (change.live === true) {
+ $right.addClass('col-xs-4 text-right')
+ .append($remaining_time, $('<br />'), $enqueue_time);
+ }
var $header = $('<div />')
.addClass('row')