diff options
author | James E. Blair <jeblair@hp.com> | 2015-02-11 18:32:19 -0800 |
---|---|---|
committer | James E. Blair <jeblair@hp.com> | 2015-02-13 09:01:48 -0800 |
commit | 6dc954b1e7d6af49439ab30a2bbd8afd253e5214 (patch) | |
tree | f6b066a1c8e01d7a20bb2dcbaa8998e0ab41febf | |
parent | d1d3ce34b61b31f17bc7c782308767c3bb6836cb (diff) | |
download | zuul-6dc954b1e7d6af49439ab30a2bbd8afd253e5214.tar.gz |
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
-rw-r--r-- | etc/status/public_html/jquery.zuul.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js index 32c45d441..5e442058e 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') |