diff --git a/modules/openstack_project/files/zuul/status.js b/modules/openstack_project/files/zuul/status.js index b80e880a03..5ed5eee301 100644 --- a/modules/openstack_project/files/zuul/status.js +++ b/modules/openstack_project/files/zuul/status.js @@ -223,6 +223,14 @@ function safe_id(id) { function format_change(change, change_queue) { var html = ''; + safe_change_id = safe_id(change['id']); + display = $('#expandByDefault').is(':checked'); + collapsed_index = window.zuul_collapsed_exceptions.indexOf(safe_change_id); + if (collapsed_index > -1) { + /* listed as an exception to the current default */ + display = !display; + } + for (var i=0; i' + + html += '
' + '
'; + // Row #1 of the header (project and remaining time) html += '' + change['project'] + ''; - - display = $('#expandByDefault').is(':checked'); - safe_change_id = safe_id(change['id']); - collapsed_index = window.zuul_collapsed_exceptions.indexOf(safe_change_id); - if (collapsed_index > -1) { - /* listed as an exception to the current default */ - display = !display; - } - - html += ''; + html += ''; html += format_time(change['remaining_time'], true); html += '
'; @@ -293,7 +293,8 @@ function format_change(change, change_queue) { html += ' '; } html += '
'; - html += '' + format_enqueue_time(change['enqueue_time']) + ''; + html += ''; + html += format_enqueue_time(change['enqueue_time']) + ''; html += '
';