build.tt: split runcommand logic across multiple lines
Helps with readability.
This commit is contained in:
parent
988e79c6e5
commit
3432cd7636
|
@ -525,9 +525,17 @@ END;
|
||||||
[% IF runcommandlog.start_time != undef %]
|
[% IF runcommandlog.start_time != undef %]
|
||||||
<div>Started at [% INCLUDE renderDateTime timestamp = runcommandlog.start_time; %]</div>
|
<div>Started at [% INCLUDE renderDateTime timestamp = runcommandlog.start_time; %]</div>
|
||||||
[% IF runcommandlog.end_time != undef %]
|
[% IF runcommandlog.end_time != undef %]
|
||||||
<div>Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %][% IF runcommandlog.log_relative_url() %] — <a href="[% c.uri_for('/build', build.id, runcommandlog.log_relative_url()) %]">Logs</a>[% END %]</div>
|
<div>Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %]
|
||||||
|
[% IF runcommandlog.log_relative_url() %]
|
||||||
|
 — <a href="[% c.uri_for('/build', build.id, runcommandlog.log_relative_url()) %]">Logs</a>
|
||||||
|
[% END %]
|
||||||
|
</div>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<div>Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %][% IF runcommandlog.log_relative_url() %] — <a href="[% c.uri_for('/build', build.id, runcommandlog.log_relative_url()) %]">Logs</a>[% END %]</div>
|
<div>Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %]
|
||||||
|
[% IF runcommandlog.log_relative_url() %]
|
||||||
|
 — <a href="[% c.uri_for('/build', build.id, runcommandlog.log_relative_url()) %]">Logs</a>
|
||||||
|
[% END %]
|
||||||
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<div>Pending</div>
|
<div>Pending</div>
|
||||||
|
|
Loading…
Reference in a new issue