open-nomad/ui/app/templates/components/fs/directory-entry.hbs
Buck Doyle 2998deac50
Convert to angle bracket invocation (#8075)
This is mostly a direct application of the ember-angle-brackets-codemod.
I manually restored newlines in multi-line component invocations, usually
preserving file line length except for now-non-positional link-to @route.

I needed to rename task to taskState in some cases to avoid Ember
Concurrency naming conflicts.
2020-06-01 14:03:56 -05:00

16 lines
582 B
Handlebars

<tr data-test-entry>
<td>
<Fs::Link @allocation={{allocation}} @taskState={{taskState}} @path={{pathToEntry}}>
{{#if entry.IsDir}}
{{x-icon "folder-outline"}}
{{else}}
{{x-icon "file-outline"}}
{{/if}}
<span class="name" data-test-name>{{entry.Name}}</span>
</Fs::Link>
</td>
<td class="has-text-right" data-test-size>{{#unless entry.IsDir}}{{format-bytes entry.Size}}{{/unless}}</td>
<td class="has-text-right" title={{format-ts entry.ModTime}} data-test-last-modified>{{moment-from entry.ModTime interval=1000}}</td>
</tr>