fix template logic if job has not yet started
This commit is contained in:
parent
f445690fb5
commit
8d2ca774d0
|
@ -1,7 +1,5 @@
|
|||
{{remove-log-popup job=job}}
|
||||
|
||||
|
||||
|
||||
<section id="log-container" class="log">
|
||||
|
||||
{{#if auth.signedIn}}
|
||||
|
@ -28,21 +26,20 @@
|
|||
|
||||
{{#if job.notStarted}}
|
||||
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
|
||||
{{/if}}
|
||||
|
||||
{{else}}
|
||||
<a class="toggle-log-button {{if logIsVisible 'hidden'}}" title="Display the log" {{action "toggleLog"}}>
|
||||
{{eye-icon}}
|
||||
<span class="label-align">View log</span></a>
|
||||
|
||||
<div class="log-main {{if logIsVisible 'is-visible'}} {{if job.notStarted 'hidden'}}">
|
||||
<div class="log-header">
|
||||
<a class="toggle-log-button--dark {{unless logIsVisible 'hidden'}}" title="Display the log" {{action "toggleLog"}}>{{eye-icon}}<span class="label-align">Hide log</span></a>
|
||||
<a class="toggle-log-button--dark {{unless logIsVisible 'hidden'}}" title="Display the log" {{action "toggleLog"}}>{{eye-icon}}Hide log</a>
|
||||
{{#if canRemoveLog}}
|
||||
<a class="remove-log-button open-popup" {{action "removeLogPopup"}} title="Remove the log">
|
||||
<span class="icon-remove-log" aria-hidden="true"></span><span class="label-align">Remove log</span></a>
|
||||
<span class="icon-remove-log" aria-hidden="true"></span>Remove log</a>
|
||||
{{/if}}
|
||||
<a class="download-log-button" href={{plainTextLogUrl}} title="Display the log in plaintext">
|
||||
<span class="icon-download-log" aria-hiden="true"></span><span class="label-align">Raw log</span></a>
|
||||
<span class="icon-download-log" aria-hiden="true"></span>Raw log</a>
|
||||
</div>
|
||||
<div class="log-body">
|
||||
{{#if showTailing}}
|
||||
|
@ -71,4 +68,5 @@
|
|||
build or download the <a href={{plainTextLogUrl}}>raw log</a>.
|
||||
</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue
Block a user