make merge conflict changes black
instead of using the red dot to be all fails, use a black dot to represent a change which has a merge conflict. Then it's clearer when something it off the subway map, why it is, without having to mouse over the circle (which few people knew about). Change-Id: Ia44292fa553538e8924993f92a7177dfae34111f
This commit is contained in:
parent
9669900184
commit
d15fd0647e
BIN
modules/openstack_project/files/zuul/black.png
Normal file
BIN
modules/openstack_project/files/zuul/black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 355 B |
@ -227,8 +227,12 @@ function format_change(change, change_queue) {
|
|||||||
html += '<td class="'+cls+'">';
|
html += '<td class="'+cls+'">';
|
||||||
if (i == change['_tree_index']) {
|
if (i == change['_tree_index']) {
|
||||||
if (change['failing_reasons'] && change['failing_reasons'].length > 0) {
|
if (change['failing_reasons'] && change['failing_reasons'].length > 0) {
|
||||||
html += '<img src="red.png" title="Failing because '+
|
var reason = change['failing_reasons'].join(', ');
|
||||||
change['failing_reasons'].join(', ')+'"/>';
|
var image = 'red.png';
|
||||||
|
if (reason.match(/merge conflict/)) {
|
||||||
|
image = 'black.png';
|
||||||
|
}
|
||||||
|
html += '<img src="' + image + '" title="Failing because ' + reason +'"/>';
|
||||||
} else {
|
} else {
|
||||||
html += '<img src="green.png" title="Succeeding"/>';
|
html += '<img src="green.png" title="Succeeding"/>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user