Show listings of a path

This commit is contained in:
2017-11-12 04:03:13 +01:00
parent ff2f44df18
commit 0607d82e50
13 changed files with 106 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
<nav>
<ul>
{{#each categories as |category|}}
<li><a>{{category}}</a></li>
<li>{{#link-to "index" (query-params path=category)}}{{category}}{{/link-to}}</li>
{{/each}}
</ul>
</nav>

View File

@@ -6,4 +6,8 @@ export default Component.extend({
type: null,
isFolder: function() {
return this.get('type') === 'folder';
}.property('type')
});

View File

@@ -1 +1,5 @@
<img src="/img/file-icons/{{type}}.svg">
{{#if isFolder}}
<img src="/img/file-icons/folder.svg">
{{else}}
<img src="/img/file-icons/file.svg">
{{/if}}