Render directory items in index

This commit is contained in:
2017-11-09 00:22:42 +01:00
parent bf84e70527
commit 939dce2b1f
11 changed files with 124 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
import Component from '@ember/component';
export default Component.extend({
classNames: ['directory-listing'],
items: null
});

View 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>