Zuul status page style changes.
Make it easier on the eyes: * blue links (like jenkins/gerrit) * color-coded test results * more verbose info for pre-results tests Change-Id: I5d8c26e8fa70429e6f1429deae59e2231ab2051b Reviewed-on: https://review.openstack.org/19357 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
61ab9c81ce
commit
9f0fd06d69
@ -38,6 +38,18 @@
|
||||
font-size: 16pt;
|
||||
line-height: 1.0;
|
||||
}
|
||||
.result_success {
|
||||
color: #007f00;
|
||||
}
|
||||
.result_failure {
|
||||
color: #cf2f19;
|
||||
}
|
||||
.result_unstable {
|
||||
color: #e39f00;
|
||||
}
|
||||
a:link {
|
||||
color: #204A87;
|
||||
}
|
||||
</style>
|
||||
|
||||
<TITLE>Zuul Status</TITLE>
|
||||
|
@ -67,8 +67,21 @@ function format_change(change) {
|
||||
|
||||
$.each(change['jobs'], function(i, job) {
|
||||
result = job['result'];
|
||||
var result_class = "result";
|
||||
if (result == null) {
|
||||
result = 'unknown';
|
||||
if (job['url'] != null) {
|
||||
result = 'in progress';
|
||||
} else {
|
||||
result = 'queued';
|
||||
}
|
||||
} else if (result == 'SUCCESS') {
|
||||
result_class += " result_success";
|
||||
} else if (result == 'FAILURE') {
|
||||
result_class += " result_failure";
|
||||
} else if (result == 'LOST') {
|
||||
result_class += " result_unstable";
|
||||
} else if (result == 'UNSTABLE') {
|
||||
result_class += " result_unstable";
|
||||
}
|
||||
html += '<span class="job">';
|
||||
if (job['url'] != null) {
|
||||
@ -78,7 +91,7 @@ function format_change(change) {
|
||||
if (job['url'] != null) {
|
||||
html += '</a>';
|
||||
}
|
||||
html += ': '+result;
|
||||
html += ': <span class="'+result_class+'">'+result+'</span>';
|
||||
if (job['voting'] == false) {
|
||||
html += ' (non-voting)';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user