diff --git a/src/root/build.tt b/src/root/build.tt
index a497362e..0007e62d 100644
--- a/src/root/build.tt
+++ b/src/root/build.tt
@@ -176,14 +176,23 @@
[% END %]
[% IF !build.finished %]
- [% INCLUDE renderBuildSteps type="Running" %]
+ [% INCLUDE renderBuildSteps type="Running" %]
[% END %]
[% IF build.finished %]
- [% IF build.buildsteps && (build.resultInfo.buildstatus == 2 || build.resultInfo.buildstatus == 5)%]
+ [% IF build.buildsteps && build.resultInfo.buildstatus != 0 %]
[% INCLUDE renderBuildSteps type="Failed" %]
[% END %]
+ [% IF build.resultInfo.buildstatus != 0 && prevSuccessfulBuild %]
+
Changes
+
+ The previous successful build of this job was [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]. The
+ following changes were made since:
+
+ [% INCLUDE renderInputDiff build2=build , build1=prevSuccessfulBuild %]
+ [% END %]
+
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
Nix error output
@@ -384,16 +393,13 @@
+
+
[% IF prevBuild %]
- Changes since previous build : [% INCLUDE renderFullBuildLink build=prevBuild %]
+ Changes since previous build : [% INCLUDE renderFullBuildLink build=prevBuild %]
[% INCLUDE renderInputDiff build2=build , build1=prevBuild %]
[% END %]
-
- [% IF prevBuild && prevSuccessfulBuild.id != prevBuild.id %]
- Changes since previous successful build : [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]
- [% INCLUDE renderInputDiff build2=build , build1=prevSuccessfulBuild %]
- [% END %]
-
+
diff --git a/src/root/common.tt b/src/root/common.tt
index a91ecb96..00833890 100644
--- a/src/root/common.tt
+++ b/src/root/common.tt
@@ -198,7 +198,7 @@
[% END -%]
[% BLOCK renderFullBuildLink; %]
- Job [% INCLUDE renderFullJobNameOfBuild build=build %] build [% build.id %]
+ [% INCLUDE renderFullJobNameOfBuild build=build %] build [% build.id %]
[% END %]
[% BLOCK renderBuildStatusIcon; %]