open-nomad/ui/app/components/variable-paths.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
949 B
Handlebars
Raw Normal View History

<ListTable class="path-tree" @source={{@branch}} as |t|>
<t.head>
<th>
Path
</th>
</t.head>
<tbody>
{{#each this.folders as |folder|}}
<tr data-test-folder-row {{on "click" (fn this.handleFolderClick folder.data.absolutePath)}}>
<td>
<span>
<FlightIcon @name="folder" />
<LinkTo @route="variables.path" @model={{folder.data.absolutePath}}>
{{trim-path folder.name}}
</LinkTo>
</span>
</td>
</tr>
{{/each}}
{{#each this.files as |file|}}
<tr data-test-file-row {{on "click" (fn this.handleFileClick file.absoluteFilePath)}}>
<td>
<FlightIcon @name="file-text" />
<LinkTo
@route="variables.variable"
@model={{file.absoluteFilePath}}
>
{{file.name}}
</LinkTo>
</td>
</tr>
{{/each}}
</tbody>
</ListTable>