Show listings of a path
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -6,4 +6,8 @@ export default Component.extend({
|
||||
|
||||
type: null,
|
||||
|
||||
isFolder: function() {
|
||||
return this.get('type') === 'folder';
|
||||
}.property('type')
|
||||
|
||||
});
|
||||
|
||||
@@ -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}}
|
||||
Reference in New Issue
Block a user