Files
nomad/ui/app/templates/components/fs/directory-entry.hbs
Phil Renaud c9e4351ee5 [ui] Icon migration from {{x-icon}} to Helios (#25353)
* First batch of x-icon to hds::icons

* Bunch more icons and a note for jobrow

* Fixes for tests that depended on specific action names

* Icon-bumped-down specified to solo-icons in table cells

* Class-basing the icon bump and deferring icon svg load in env

* Exec window sidebar icons were looking a little off
2025-03-14 13:22:18 -04:00

21 lines
744 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
<tr data-test-entry>
<td>
<Fs::Link @allocation={{this.allocation}} @taskState={{this.taskState}} @path={{this.pathToEntry}}>
{{#if this.entry.IsDir}}
<Hds::Icon @name="folder" @isInline={{true}} />
{{else}}
<Hds::Icon @name="file" @isInline={{true}} />
{{/if}}
<span class="name" data-test-name>{{this.entry.Name}}</span>
</Fs::Link>
</td>
<td class="has-text-right" data-test-size>{{#unless this.entry.IsDir}}{{format-bytes this.entry.Size}}{{/unless}}</td>
<td class="has-text-right" title={{format-ts this.entry.ModTime}} data-test-last-modified>{{moment-from this.entry.ModTime interval=1000}}</td>
</tr>