github.com/manicqin/nomad@v0.9.5/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={{action "gotoHead"}}>Head</button>
    14      <button data-test-log-action="tail" class="button is-white" onclick={{action "gotoTail"}}>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    {{streaming-file logger=logger mode=streamMode isStreaming=isStreaming}}
    22  </div>