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 %]
-
- [% ELSE %]
-
- [% END %]
- |
+ [% INCLUDE renderBuildStatusIcon size=16 %]
+
[% END %]
[% build.id %] |
[% IF showSchedulingInfo %]
@@ -148,11 +144,11 @@
[% finishedBuilds %] |
- Succeeded builds: |
+ Succeeded builds: |
[% succeededBuilds %] |
- Failed builds: |
+ 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 %]
- [% ELSIF build.resultInfo.buildstatus == 1 %]
+ [% ELSIF buildstatus == 1 %]
- [% ELSIF build.resultInfo.buildstatus == 2 %]
+ [% ELSIF buildstatus == 2 %]
+
+ [% ELSIF buildstatus == 4 %]
- [% ELSIF build.resultInfo.buildstatus == 4 %]
+ [% ELSIF buildstatus == 5 %]
- [% ELSIF build.resultInfo.buildstatus == 5 %]
-
- [% ELSIF build.resultInfo.buildstatus == 6 %]
+ [% ELSIF buildstatus == 6 %]
[% ELSE %]
[% END %]
- [% ELSIF build.schedulingInfo.busy %]
-
+ [% ELSIF busy %]
+
[% ELSE %]
[% END %]
@@ -234,27 +233,27 @@
[% BLOCK renderStatus; %]
[% IF build.finished %]
[% IF build.resultInfo.buildstatus == 0 %]
-
+ [% INCLUDE renderBuildStatusIcon size=16 %]
Success
[% ELSIF build.resultInfo.buildstatus == 1 %]
-
+ [% INCLUDE renderBuildStatusIcon size=16 %]
Build returned a non-zero exit code
[% ELSIF build.resultInfo.buildstatus == 2 %]
-
+ [% INCLUDE renderBuildStatusIcon size=16 %]
A dependency of the build failed
[% ELSIF build.resultInfo.buildstatus == 4 %]
-
+ [% INCLUDE renderBuildStatusIcon size=16 %]
Cancelled by user
[% ELSIF build.resultInfo.buildstatus == 5 %]
-
+ [% 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 %]
-
+ [% INCLUDE renderBuildStatusIcon size=16 %]
Build failed (with result)
[% ELSE %]
-
+ [% 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 @@