Zuul 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: Ibfcd4c997c1f2447d56ad12f7f7c0203c62d5bce
This commit is contained in:
parent
ab07b3fc0b
commit
7204ca363b
@ -272,9 +272,12 @@ function format_change(change, change_queue) {
|
|||||||
|
|
||||||
// Row #1 of the header (project and remaining time)
|
// Row #1 of the header (project and remaining time)
|
||||||
html += '<span class="project">' + change['project'] + '</span>';
|
html += '<span class="project">' + change['project'] + '</span>';
|
||||||
html += '<span class="time" title="Remaining Time">';
|
if (change.live === true) {
|
||||||
html += format_time(change['remaining_time'], true);
|
html += '<span class="time" title="Remaining Time">';
|
||||||
html += '</span><br/>';
|
html += format_time(change['remaining_time'], true);
|
||||||
|
html += '</span>';
|
||||||
|
}
|
||||||
|
html += '<br/>';
|
||||||
|
|
||||||
// Row #2 of the header (change id and enqueue time)
|
// Row #2 of the header (change id and enqueue time)
|
||||||
html += '<span class="changeid"> ';
|
html += '<span class="changeid"> ';
|
||||||
@ -297,9 +300,10 @@ function format_change(change, change_queue) {
|
|||||||
html += ' ';
|
html += ' ';
|
||||||
}
|
}
|
||||||
html += '</span>';
|
html += '</span>';
|
||||||
html += '<span class="time" title="Queued Time">';
|
if (change.live === true) {
|
||||||
html += format_enqueue_time(change['enqueue_time']) + '</span>';
|
html += '<span class="time" title="Queued Time">';
|
||||||
|
html += format_enqueue_time(change['enqueue_time']) + '</span>';
|
||||||
|
}
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
// Job listing from here down
|
// Job listing from here down
|
||||||
|
Loading…
x
Reference in New Issue
Block a user