forked from lix-project/hydra
Merge pull request #192 from iElectric/status_images
Make sure status images always display for a list of builds
This commit is contained in:
commit
4190f5b00d
|
@ -179,24 +179,24 @@ BLOCK renderBuildStatusIcon;
|
||||||
buildstatus = buildstatus != undef ? buildstatus : build.buildstatus;
|
buildstatus = buildstatus != undef ? buildstatus : build.buildstatus;
|
||||||
IF finished;
|
IF finished;
|
||||||
IF buildstatus == 0 %]
|
IF buildstatus == 0 %]
|
||||||
<img src="[% c.uri_for("/static/images/checkmark_${size}.png") %]" alt="Succeeded" />
|
<img src="[% c.uri_for("/static/images/checkmark_${size}.png") %]" alt="Succeeded" class="build-status" />
|
||||||
[% ELSIF buildstatus == 1 %]
|
[% ELSIF buildstatus == 1 %]
|
||||||
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed" />
|
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed" class="build-status" />
|
||||||
[% ELSIF buildstatus == 2 || buildstatus == 5 %]
|
[% ELSIF buildstatus == 2 || buildstatus == 5 %]
|
||||||
<img src="[% c.uri_for("/static/images/dependency_${size}.png") %]" alt="Dependency failed" />
|
<img src="[% c.uri_for("/static/images/dependency_${size}.png") %]" alt="Dependency failed" class="build-status" />
|
||||||
[% ELSIF buildstatus == 3 %]
|
[% ELSIF buildstatus == 3 %]
|
||||||
<img src="[% c.uri_for("/static/images/warning_${size}.png") %]" alt="Aborted" />
|
<img src="[% c.uri_for("/static/images/warning_${size}.png") %]" alt="Aborted" class="build-status" />
|
||||||
[% ELSIF buildstatus == 4 %]
|
[% ELSIF buildstatus == 4 %]
|
||||||
<img src="[% c.uri_for("/static/images/forbidden_${size}.png") %]" alt="Cancelled" />
|
<img src="[% c.uri_for("/static/images/forbidden_${size}.png") %]" alt="Cancelled" class="build-status" />
|
||||||
[% ELSIF buildstatus == 6 %]
|
[% ELSIF buildstatus == 6 %]
|
||||||
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed (with result)" />
|
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed (with result)" class="build-status" />
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed" />
|
<img src="[% c.uri_for("/static/images/error_${size}.png") %]" alt="Failed" class="build-status" />
|
||||||
[% END;
|
[% END;
|
||||||
ELSIF busy %]
|
ELSIF busy %]
|
||||||
<img src="[% c.uri_for("/static/images/help_${size}.png") %]" alt="Busy" />
|
<img src="[% c.uri_for("/static/images/help_${size}.png") %]" alt="Busy" class="build-status" />
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<img src="[% c.uri_for("/static/images/help_${size}.png") %]" alt="Scheduled" />
|
<img src="[% c.uri_for("/static/images/help_${size}.png") %]" alt="Scheduled" class="build-status" />
|
||||||
[% END;
|
[% END;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
|
|
@ -114,4 +114,8 @@ td.nowrap {
|
||||||
|
|
||||||
span.keep-whitespace {
|
span.keep-whitespace {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.build-status {
|
||||||
|
max-width: none; /* don't apply responsive design to status images */
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue