{{folder/space-heading folder=folder permissions=permissions documents=documents categories=categories}} {{folder/space-toolbar folders=folders folder=folder permissions=permissions hasSelectedDocuments=hasSelectedDocuments onDeleteDocument=(action 'onDeleteDocument') onMoveDocument=(action 'onMoveDocument') onDeleteSpace=(action 'onDeleteSpace') onStartDocument=(action 'onStartDocument')}}
{{#if showStartDocument}} {{folder/start-document folder=folder templates=templates permissions=permissions onImport=(action 'onImport') onHideStartDocument=(action 'onHideStartDocument')}} {{else}} {{#if hasCategories}} {{#if (gt categories.length 0)}}
Space
all ({{documents.length}})
Category
{{#if (gt rootDocCount 0)}}
uncategorized ({{rootDocCount}})
{{/if}} {{#each categories as |cat index|}}
{{cat.category}} ({{cat.docCount}})
{{/each}}
{{/if}} {{/if}} {{folder/documents-list documents=filteredDocs folders=folders folder=folder templates=templates permissions=permissions selectedDocuments=(mut selectedDocuments)}} {{/if}}