github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/templates/components/task-log.hbs (about)

     1  {{#if noConnection}}
     2    <div data-test-connection-error class="notification is-error">
     3      <h3 class="title is-4">Cannot fetch logs</h3>
     4      <p>The logs for this task are inaccessible. Check the condition of the node the allocation is on.</p>
     5    </div>
     6  {{/if}}
     7  <div class="boxed-section-head">
     8    <span>
     9      <button data-test-log-action="stdout" class="button {{if (eq mode "stdout") "is-info"}}" {{action "setMode" "stdout"}}>stdout</button>
    10      <button data-test-log-action="stderr" class="button {{if (eq mode "stderr") "is-danger"}}" {{action "setMode" "stderr"}}>stderr</button>
    11    </span>
    12    <span class="pull-right">
    13      <button data-test-log-action="head" class="button is-white" onclick={{perform head}}>Head</button>
    14      <button data-test-log-action="tail" class="button is-white" onclick={{perform tail}}>Tail</button>
    15      <button data-test-log-action="toggle-stream" class="button is-white" onclick={{action "toggleStream"}}>
    16        {{x-icon (if logger.isStreaming "media-pause" "media-play") class="is-text"}}
    17      </button>
    18    </span>
    19  </div>
    20  <div data-test-log-box class="boxed-section-body is-dark is-full-bleed">
    21    <pre data-test-log-cli class="cli-window"><code>{{logger.output}}</code></pre>
    22  </div>