From 34e4c119f49bcafaa69d13e2127f6c756b20ecb8 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 31 Jan 2022 11:35:33 -0800 Subject: [PATCH] build.tt: don't duplicate RunCommandLog buttons --- src/root/build.tt | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 66587eca..0848da4a 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -527,24 +527,16 @@ END;
[% IF runcommandlog.end_time != undef %] Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %] - [% IF runcommandlog.uuid != undef %] - [% runLog = c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %] -
- pretty - raw - tail -
- [% END %] [% ELSE %] Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %] - [% IF runcommandlog.uuid != undef %] - [% runLog = c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %] -
- pretty - raw - tail -
- [% END %] + [% END %] + [% IF runcommandlog.uuid != undef %] + [% runLog = c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %] +
+ pretty + raw + tail +
[% END %]
[% ELSE %]