From 3432cd76364bd602fbbd770165ace50df6a07d14 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 25 Jan 2022 10:58:25 -0800 Subject: [PATCH] build.tt: split runcommand logic across multiple lines Helps with readability. --- src/root/build.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index ba122667..8a3a921f 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -525,9 +525,17 @@ END; [% IF runcommandlog.start_time != undef %]
Started at [% INCLUDE renderDateTime timestamp = runcommandlog.start_time; %]
[% IF runcommandlog.end_time != undef %] -
Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %][% IF runcommandlog.log_relative_url() %] — Logs[% END %]
+
Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %] + [% IF runcommandlog.log_relative_url() %] +  — Logs + [% END %] +
[% ELSE %] -
Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %][% IF runcommandlog.log_relative_url() %] — Logs[% END %]
+
Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %] + [% IF runcommandlog.log_relative_url() %] +  — Logs + [% END %] +
[% END %] [% ELSE %]
Pending