Render directory items in index
This commit is contained in:
10
app/components/directory-listing/component.js
Normal file
10
app/components/directory-listing/component.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
|
||||
classNames: ['directory-listing'],
|
||||
|
||||
items: null
|
||||
|
||||
|
||||
});
|
||||
16
app/components/directory-listing/template.hbs
Normal file
16
app/components/directory-listing/template.hbs
Normal file
@@ -0,0 +1,16 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Type</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each items as |item|}}
|
||||
<tr>
|
||||
<td class="name">{{item.name}}</td>
|
||||
<td class="type">{{item.type}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user