github.com/hernad/nomad@v1.6.112/ui/app/templates/components/fs/browser.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <section class="section is-closer {{if this.isFile "is-full-width"}}">
     7    {{#if this.isFile}}
     8      <Fs::File @allocation={{this.allocation}} @taskState={{this.taskState}} @file={{this.path}} @stat={{this.stat}} @class="fs-explorer">
     9        <Fs::Breadcrumbs @allocation={{this.allocation}} @taskState={{this.taskState}} @path={{this.path}} />
    10      </Fs::File>
    11    {{else}}
    12      <div class="fs-explorer boxed-section">
    13        <div class="boxed-section-head">
    14          <Fs::Breadcrumbs @allocation={{this.allocation}} @taskState={{this.taskState}} @path={{this.path}} />
    15        </div>
    16        {{#if this.directoryEntries}}
    17          <ListTable
    18            @source={{this.sortedDirectoryEntries}}
    19            @sortProperty={{this.sortProperty}}
    20            @sortDescending={{this.sortDescending}}
    21            @class="boxed-section-body is-full-bleed is-compact" as |t|>
    22            <t.head>
    23              <t.sort-by @prop="Name" @class="is-two-thirds">Name</t.sort-by>
    24              <t.sort-by @prop="Size" @class="has-text-right">File Size</t.sort-by>
    25              <t.sort-by @prop="ModTime" @class="has-text-right">Last Modified</t.sort-by>
    26            </t.head>
    27            <t.body as |row|>
    28              <Fs::DirectoryEntry @path={{this.path}} @allocation={{this.allocation}} @taskState={{this.taskState}} @entry={{row.model}} />
    29            </t.body>
    30          </ListTable>
    31        {{else}}
    32          <div class="boxed-section-body">
    33            <div data-test-empty-directory class="empty-message">
    34              <h3 data-test-empty-directory-headline class="empty-message-headline">No Files</h3>
    35              <p data-test-empty-directory-body class="empty-message-body">
    36                Directory is currently empty.
    37              </p>
    38            </div>
    39          </div>
    40        {{/if}}
    41      </div>
    42    {{/if}}
    43  </section>