From 71bbb042dbc4e4b55f1de613aa842d3b753452a6 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 27 Jan 2022 09:14:01 -0800 Subject: [PATCH] build.tt: link to the pretty, raw, and tail versions of the log Also split it out to a new div -- there are now 3 lines per RunCommandLog -- the first saying when it started, the second saying how long it ran for (or has been running), and the third with the buttons for the pretty, raw, and tail versions of the log. --- src/root/build.tt | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 61a846bb..66587eca 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -524,19 +524,29 @@ 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.uuid != undef %] -  â€” Logs - [% END %] -
- [% ELSE %] -
Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %] - [% IF runcommandlog.uuid != undef %] -  â€” Logs - [% END %] -
- [% 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 %] +
[% ELSE %]
Pending
[% END %]