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:
James E. Blair 2013-01-09 18:32:45 -08:00 committed by Jenkins
parent 61ab9c81ce
commit 9f0fd06d69
2 changed files with 27 additions and 2 deletions

View File

@ -38,6 +38,18 @@
font-size: 16pt; font-size: 16pt;
line-height: 1.0; line-height: 1.0;
} }
.result_success {
color: #007f00;
}
.result_failure {
color: #cf2f19;
}
.result_unstable {
color: #e39f00;
}
a:link {
color: #204A87;
}
</style> </style>
<TITLE>Zuul Status</TITLE> <TITLE>Zuul Status</TITLE>

View File

@ -67,8 +67,21 @@ function format_change(change) {
$.each(change['jobs'], function(i, job) { $.each(change['jobs'], function(i, job) {
result = job['result']; result = job['result'];
var result_class = "result";
if (result == null) { 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">'; html += '<span class="job">';
if (job['url'] != null) { if (job['url'] != null) {
@ -78,7 +91,7 @@ function format_change(change) {
if (job['url'] != null) { if (job['url'] != null) {
html += '</a>'; html += '</a>';
} }
html += ': '+result; html += ': <span class="'+result_class+'">'+result+'</span>';
if (job['voting'] == false) { if (job['voting'] == false) {
html += ' (non-voting)'; html += ' (non-voting)';
} }