github.com/hernad/nomad@v1.6.112/ui/app/templates/components/task-log.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 {{#if this.noConnection}} 7 <div data-test-connection-error class="notification is-error"> 8 <div class="columns"> 9 <div class="column"> 10 <h3 class="title is-4">Cannot fetch logs</h3> 11 <p>The logs for this task are inaccessible. Check the condition of the node the allocation is on.</p> 12 </div> 13 <div class="column is-centered is-minimum"> 14 <button data-test-connection-error-dismiss class="button is-danger" onclick={{action (mut this.noConnection) false}} type="button">Okay</button> 15 </div> 16 </div> 17 </div> 18 {{/if}} 19 <div class="boxed-section-head task-log-head"> 20 <span> 21 <button data-test-log-action="stdout" class="button {{if (eq this.mode "stdout") "is-info"}}" {{action "setMode" "stdout"}} type="button">stdout</button> 22 <button data-test-log-action="stderr" class="button {{if (eq this.mode "stderr") "is-danger"}}" {{action "setMode" "stderr"}} type="button">stderr</button> 23 </span> 24 <span class="pull-right"> 25 <span class="header-toggle"> 26 <Hds::Form::Toggle::Field 27 {{keyboard-shortcut label="Toggle word wrap" action=(action "toggleWrap") pattern=(array "w" "w") menuLevel=true }} 28 checked={{this.wrapped}} 29 {{on "change" this.toggleWrap}} 30 data-test-word-wrap-toggle 31 as |F|> 32 <F.Label>Word Wrap</F.Label> 33 </Hds::Form::Toggle::Field> 34 </span> 35 <button data-test-log-action="head" class="button is-white" onclick={{action "gotoHead"}} type="button">Head</button> 36 <button data-test-log-action="tail" class="button is-white" onclick={{action "gotoTail"}} type="button">Tail</button> 37 <button data-test-log-action="toggle-stream" class="button is-white" onclick={{action "toggleStream"}} type="button" title="{{if this.logger.isStreaming "Stop" "Start"}} log streaming"> 38 {{x-icon (if this.logger.isStreaming "media-pause" "media-play") class="is-text"}} 39 </button> 40 </span> 41 </div> 42 <div data-test-log-box class="boxed-section-body is-dark is-full-bleed"> 43 <StreamingFile @logger={{this.logger}} @mode={{this.streamMode}} @isStreaming={{this.isStreaming}} @shouldFillHeight={{this.shouldFillHeight}} @wrapped={{this.wrapped}} /> 44 </div>