diff --git a/src/root/common.tt b/src/root/common.tt index 970aea2b..41647be2 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -100,12 +100,8 @@ onclick="window.location = '[% c.uri_for('/build' build.id) %]'"> [% IF !hideResultInfo %] - [% IF build.get_column('buildstatus') == 0 %] - Succeeded - [% ELSE %] - Failed - [% END %] - + [% INCLUDE renderBuildStatusIcon size=16 %] + [% END %] [% build.id %] [% IF showSchedulingInfo %] @@ -148,11 +144,11 @@ [% finishedBuilds %] - Succeeded Succeeded builds: + Succeeded Succeeded builds: [% succeededBuilds %] - Failed Failed builds: + Failed Failed builds: [% finishedBuilds - succeededBuilds %] @@ -208,24 +204,27 @@ [% END %] [% BLOCK renderBuildStatusIcon; %] - [% IF build.finished %] - [% IF build.resultInfo.buildstatus == 0 %] +[% finished = build != undef ? build.finished : 1 %] +[% busy = build != undef ? build.schedulingInfo.busy : 0 %] +[% buildstatus = buildstatus != undef ? buildstatus : build.resultInfo.buildstatus %] + [% IF finished %] + [% IF buildstatus == 0 %] Succeeded - [% ELSIF build.resultInfo.buildstatus == 1 %] + [% ELSIF buildstatus == 1 %] Failed - [% ELSIF build.resultInfo.buildstatus == 2 %] + [% ELSIF buildstatus == 2 %] + Dependency failed + [% ELSIF buildstatus == 4 %] Failed - [% ELSIF build.resultInfo.buildstatus == 4 %] + [% ELSIF buildstatus == 5 %] Failed - [% ELSIF build.resultInfo.buildstatus == 5 %] - Failed - [% ELSIF build.resultInfo.buildstatus == 6 %] + [% ELSIF buildstatus == 6 %] Failed (with result) [% ELSE %] Failed [% END %] - [% ELSIF build.schedulingInfo.busy %] - Budy + [% ELSIF busy %] + Busy [% ELSE %] Scheduled [% END %] @@ -234,27 +233,27 @@ [% BLOCK renderStatus; %] [% IF build.finished %] [% IF build.resultInfo.buildstatus == 0 %] - Succeeded + [% INCLUDE renderBuildStatusIcon size=16 %] Success [% ELSIF build.resultInfo.buildstatus == 1 %] - Failed + [% INCLUDE renderBuildStatusIcon size=16 %] Build returned a non-zero exit code [% ELSIF build.resultInfo.buildstatus == 2 %] - Failed + [% INCLUDE renderBuildStatusIcon size=16 %] A dependency of the build failed [% ELSIF build.resultInfo.buildstatus == 4 %] - Failed + [% INCLUDE renderBuildStatusIcon size=16 %] Cancelled by user [% ELSIF build.resultInfo.buildstatus == 5 %] - Failed + [% INCLUDE renderBuildStatusIcon size=16 %] Build inhibited because a dependency previously failed to build [% failedDep = build.resultInfo.failedDep %] (namely, [% failedDep.outpath %]) [% ELSIF build.resultInfo.buildstatus == 6 %] - Failed (with result) + [% INCLUDE renderBuildStatusIcon size=16 %] Build failed (with result) [% ELSE %] - Failed + [% INCLUDE renderBuildStatusIcon size=16 %] Build failed (see below) [% END %] diff --git a/src/root/jobset.tt b/src/root/jobset.tt index 95109058..0cb1f16d 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -90,7 +90,7 @@
[% IF jobset.errormsg && !edit -%] -
There are evaluation errors!
+
There are evaluation errors!