diff --git a/src/root/build.tt b/src/root/build.tt
index 93a02e0f..18ff6f01 100644
--- a/src/root/build.tt
+++ b/src/root/build.tt
@@ -61,21 +61,7 @@ END;
[% IF step.busy != 0 || ((step.machine || step.starttime) && (step.status == 0 || step.status == 1 || step.status == 3 || step.status == 4 || step.status == 7)); INCLUDE renderMachineName machine=step.machine; ELSE; "n/a"; END %] |
[% IF step.busy != 0 %]
- [% IF step.busy == 1 %]
- Preparing
- [% ELSIF step.busy == 10 %]
- Connecting
- [% ELSIF step.busy == 20 %]
- Sending inputs
- [% ELSIF step.busy == 30 %]
- Building
- [% ELSIF step.busy == 40 %]
- Receiving outputs
- [% ELSIF step.busy == 50 %]
- Post-processing
- [% ELSE %]
- Unknown state
- [% END %]
+ [% INCLUDE renderBusyStatus %]
[% ELSIF step.status == 0 %]
[% IF step.isnondeterministic %]
Succeeded with non-determistic result
diff --git a/src/root/common.tt b/src/root/common.tt
index 869d8856..814d08ca 100644
--- a/src/root/common.tt
+++ b/src/root/common.tt
@@ -245,6 +245,25 @@ BLOCK renderBuildStatusIcon;
END;
+BLOCK renderBusyStatus;
+ IF step.busy == 1 %]
+ Preparing
+ [% ELSIF step.busy == 10 %]
+ Connecting
+ [% ELSIF step.busy == 20 %]
+ Sending inputs
+ [% ELSIF step.busy == 30 %]
+ Building
+ [% ELSIF step.busy == 40 %]
+ Receiving outputs
+ [% ELSIF step.busy == 50 %]
+ Post-processing
+ [% ELSE %]
+ Unknown state
+ [% END;
+END;
+
+
BLOCK renderStatus;
IF build.finished;
buildstatus = build.buildstatus;
diff --git a/src/root/machine-status.tt b/src/root/machine-status.tt
index 4195c178..3af5073c 100644
--- a/src/root/machine-status.tt
+++ b/src/root/machine-status.tt
@@ -10,6 +10,7 @@
| Build |
Step |
What |
+ Status |
Since |
@@ -44,6 +45,7 @@
[% step.build %] |
[% IF step.busy >= 30 %][% step.stepnr %][% ELSE; step.stepnr; END %] |
[% step.drvpath.match('-(.*)').0 %] |
+ [% INCLUDE renderBusyStatus %] |
[% INCLUDE renderDuration duration = curTime - step.starttime %] |
[% END %]