mirror of https://github.com/rancher/ui.git
41 lines
1.3 KiB
Handlebars
41 lines
1.3 KiB
Handlebars
<h2>
|
|
<i class="icon icon-file"></i> {{t 'containerLogs.title'}}
|
|
{{#if displayName}}
|
|
{{displayName}}
|
|
{{else if (gt instance.containers.length 1)}}
|
|
<div class="container-select">
|
|
{{new-select
|
|
classNames="form-control"
|
|
optionValuePath="name"
|
|
optionLabelPath="name"
|
|
content=instance.containers
|
|
value=containerName
|
|
}}
|
|
</div>
|
|
{{else}}
|
|
{{containerName}}
|
|
{{/if}}
|
|
<div class="console-status text-muted pull-right">{{t (concat 'containerLogs.status.' status)}}</div>
|
|
</h2>
|
|
{{#if showProtip}}
|
|
<div class="protip">
|
|
{{t 'containerLogs.protip' key=alternateLabel}}
|
|
</div>
|
|
{{/if}}
|
|
<pre class="log-body {{if wrapLines 'wrap-lines'}}">
|
|
</pre>
|
|
{{yield}}
|
|
|
|
<div class="footer-actions">
|
|
<div class="checkbox pt-10" style="position: absolute">
|
|
<label>
|
|
{{input type="checkbox" checked=wrapLines}}
|
|
{{t 'containerLogs.wrapLines'}}
|
|
</label>
|
|
</div>
|
|
<button {{action "scrollToTop"}} class="btn bg-default">{{t 'containerLogs.scrollTop'}}</button>
|
|
<button {{action "followLog"}} class="btn bg-default scroll-bottom">{{t 'containerLogs.scrollBottom'}}</button>
|
|
<button {{action "clear"}} class="btn bg-default">{{t 'containerLogs.clear'}}</button>
|
|
<button {{action "cancel"}} class="btn bg-primary">{{t 'generic.closeModal'}}</button>
|
|
</div>
|