open-nomad/ui/app/templates/components/fs-directory-entry.hbs
Buck Doyle 4edd1d78c1
Remove superfluous test attributes (#5927)
I found while working on #5926 that x-icon already adds
assertion-compatible selectors, so these wrappers are
unnecessary.
2019-07-08 10:36:56 -05:00

16 lines
601 B
Handlebars

<tr data-test-entry>
<td>
{{#link-to "allocations.allocation.task.fs" task.allocation task pathToEntry activeClass="is-active"}}
{{#if entry.IsDir}}
{{x-icon "folder-outline"}}
{{else}}
{{x-icon "file-outline"}}
{{/if}}
<span class="name" data-test-name>{{entry.Name}}</span>
{{/link-to}}
</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>