2018-05-24 18:09:38 +01:00
|
|
|
<div class="view-space">
|
|
|
|
<div class="filter-caption mt-4">{{documents.length}} documents</div>
|
|
|
|
<ul class="tabnav-control tabnav-control-centered w-75">
|
|
|
|
<li class="tab tab-vertical {{if spaceSelected 'selected'}}" {{action 'onDocumentFilter' 'space' space.id}}>All ({{documents.length}})</li>
|
|
|
|
{{#if hasCategories}}
|
|
|
|
{{#if (gt rootDocCount 0)}}
|
2018-06-29 16:07:01 +01:00
|
|
|
<li class="tab tab-vertical text-truncate {{if uncategorizedSelected 'selected'}}" {{action 'onDocumentFilter' 'uncategorized' space.id}}>Uncategorized ({{rootDocCount}})</li>
|
2018-05-24 18:09:38 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2017-11-27 15:38:39 +00:00
|
|
|
|
2018-05-24 18:09:38 +01:00
|
|
|
<div class="view-space">
|
|
|
|
<div class="filter-caption mt-5">
|
|
|
|
{{categories.length}}
|
|
|
|
{{#if (gt categories.length 1) }}
|
|
|
|
categories
|
|
|
|
{{else if (eq categories.length 0) }}
|
|
|
|
categories
|
|
|
|
{{else}}
|
|
|
|
category
|
|
|
|
{{/if}}
|
2017-12-15 13:41:20 +00:00
|
|
|
</div>
|
2018-05-24 18:09:38 +01:00
|
|
|
<ul class="tabnav-control tabnav-control-centered w-75">
|
|
|
|
{{#each categories as |cat index|}}
|
2018-06-29 16:07:01 +01:00
|
|
|
<li class="tab tab-vertical text-truncate {{if cat.selected 'selected'}}" {{action 'onDocumentFilter' 'category' cat.id}}>{{cat.category}} ({{cat.docCount}})</li>
|
2018-05-24 18:09:38 +01:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2017-09-25 19:14:33 +01:00
|
|
|
|
2018-05-24 18:09:38 +01:00
|
|
|
{{#if spaceSettings}}
|
|
|
|
<div class="text-center {{if (gt categories.length 0) 'mt-4'}}">
|
2018-06-25 19:43:29 +01:00
|
|
|
{{#link-to 'folder.settings' space.id space.slug (query-params tab="categories") class="btn btn-secondary font-weight-bold"}}{{categoryLinkName}}{{/link-to}}
|
2018-05-24 18:09:38 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|