Status: apply default style by default
The status 'aborted' occurs when a job is manually cancelled in Jenkins.
The switch to set the css class was not taking in account.
Instead of hardcoding all possibilities, default to 'label-default'
style whenever a status is not accounted for.
Change-Id: I580553aadb297830faec93526a73f931390ce450
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js
index 9df44ce..d973948 100644
--- a/etc/status/public_html/jquery.zuul.js
+++ b/etc/status/public_html/jquery.zuul.js
@@ -148,11 +148,9 @@
case 'skipped':
$status.addClass('label-info');
break;
- case 'in progress':
- case 'queued':
- case 'lost':
+ // 'in progress' 'queued' 'lost' 'aborted' ...
+ default:
$status.addClass('label-default');
- break;
}
$status.text(result);
return $status;