forked from lix-project/hydra
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.
This commit is contained in:
parent
3594ba942a
commit
71bbb042db
|
@ -524,19 +524,29 @@ END;
|
|||
<div class="d-flex flex-column align-items-end">
|
||||
[% IF runcommandlog.start_time != undef %]
|
||||
<div>Started at [% INCLUDE renderDateTime timestamp = runcommandlog.start_time; %]</div>
|
||||
<div class="d-flex flex-column align-items-end">
|
||||
[% IF runcommandlog.end_time != undef %]
|
||||
<div>Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %]
|
||||
Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %]
|
||||
[% IF runcommandlog.uuid != undef %]
|
||||
 — <a href="[% c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %]">Logs</a>
|
||||
[% END %]
|
||||
[% runLog = c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %]
|
||||
<div>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]">pretty</a>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]/raw">raw</a>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]/tail">tail</a>
|
||||
</div>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<div>Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %]
|
||||
Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %]
|
||||
[% IF runcommandlog.uuid != undef %]
|
||||
 — <a href="[% c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %]">Logs</a>
|
||||
[% END %]
|
||||
[% runLog = c.uri_for('/build', build.id, 'runcommandlog', runcommandlog.uuid) %]
|
||||
<div>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]">pretty</a>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]/raw">raw</a>
|
||||
<a class="btn btn-secondary btn-sm" href="[% runLog %]/tail">tail</a>
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<div>Pending</div>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue