forked from lix-project/hydra
build.tt: don't duplicate RunCommandLog buttons
This commit is contained in:
parent
61189ecca9
commit
34e4c119f4
|
@ -527,24 +527,16 @@ END;
|
|||
<div class="d-flex flex-column align-items-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) %]
|
||||
<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 %]
|
||||
Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %]
|
||||
[% IF runcommandlog.uuid != undef %]
|
||||
[% 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 %]
|
||||
[% IF runcommandlog.uuid != undef %]
|
||||
[% 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 %]
|
||||
</div>
|
||||
[% ELSE %]
|
||||
|
|
Loading…
Reference in a new issue