github.com/aminovpavel/nomad@v0.11.8/ui/app/templates/components/fs/browser.hbs (about)

     1  <section class="section is-closer {{if isFile "full-width-section"}}">
     2    {{#if model.isRunning}}
     3      {{#if isFile}}
     4        {{#fs/file allocation=allocation task=task file=path stat=stat class="fs-explorer"}}
     5          {{fs/breadcrumbs allocation=allocation task=task path=path}}
     6        {{/fs/file}}
     7      {{else}}
     8        <div class="fs-explorer boxed-section">
     9          <div class="boxed-section-head">
    10            {{fs/breadcrumbs allocation=allocation task=task path=path}}
    11          </div>
    12          {{#if directoryEntries}}
    13            {{#list-table
    14              source=sortedDirectoryEntries
    15              sortProperty=sortProperty
    16              sortDescending=sortDescending
    17              class="boxed-section-body is-full-bleed is-compact" as |t|}}
    18              {{#t.head}}
    19                {{#t.sort-by prop="Name" class="is-two-thirds"}}Name{{/t.sort-by}}
    20                {{#t.sort-by prop="Size" class="has-text-right"}}File Size{{/t.sort-by}}
    21                {{#t.sort-by prop="ModTime" class="has-text-right"}}Last Modified{{/t.sort-by}}
    22              {{/t.head}}
    23              {{#t.body as |row|}}
    24                {{fs/directory-entry path=path allocation=allocation task=task entry=row.model}}
    25              {{/t.body}}
    26            {{/list-table}}
    27          {{else}}
    28            <div class="boxed-section-body">
    29              <div data-test-empty-directory class="empty-message">
    30                <h3 data-test-empty-directory-headline class="empty-message-headline">No Files</h3>
    31                <p data-test-empty-directory-body class="empty-message-body">
    32                  Directory is currently empty.
    33                </p>
    34              </div>
    35            </div>
    36          {{/if}}
    37        </div>
    38      {{/if}}
    39    {{else}}
    40      <div data-test-not-running class="empty-message">
    41        <h3 data-test-not-running-headline class="empty-message-headline">{{capitalize type}} is not Running</h3>
    42        <p data-test-not-running-body class="empty-message-body">
    43          Cannot access files of a{{if allocation 'n'}} {{type}} that is not running.
    44        </p>
    45      </div>
    46    {{/if}}
    47  </section>