diff --git a/src/root/build.tt b/src/root/build.tt
index 3cd81aad..fe0986d5 100644
--- a/src/root/build.tt
+++ b/src/root/build.tt
@@ -10,14 +10,14 @@
[% BLOCK renderBuildSteps %]
-
[% IF onlyFailed == 1 %]Failed build steps[% ELSE %]Build steps[% END%]
+ [% type %] build steps
Nr | What | Duration | Status |
[% FOREACH step IN build.buildsteps -%]
- [% IF (onlyFailed != 1) || (step.status != 0) -%]
+ [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) -%]
[% log = c.uri_for('/build' build.id 'nixlog' step.stepnr) %]
@@ -175,11 +175,13 @@
[% END %]
-
+ [% IF !build.finished %]
+ [% INCLUDE renderBuildSteps type="Running" %]
+ [% END %]
[% IF build.finished %]
[% IF build.buildsteps && (build.resultInfo.buildstatus == 2 || build.resultInfo.buildstatus == 5)%]
- [% INCLUDE renderBuildSteps onlyFailed=1 %]
+ [% INCLUDE renderBuildSteps type="Failed" %]
[% END %]
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
@@ -386,7 +388,7 @@
[% IF build.buildsteps %]
- [% INCLUDE renderBuildSteps onlyFailed=0 %]
+ [% INCLUDE renderBuildSteps type="All" %]
[% END %]