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">
|
2018-12-08 20:54:19 +00:00
|
|
|
<li class="tab tab-vertical {{if spaceSelected "selected"}}" {{action "onDocumentFilter" "space" space.id}}>All ({{documents.length}})</li>
|
2018-05-24 18:09:38 +01:00
|
|
|
{{#if hasCategories}}
|
|
|
|
{{#if (gt rootDocCount 0)}}
|
2018-12-08 20:54:19 +00: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">
|
2018-12-08 20:54:19 +00:00
|
|
|
{{#each categories as |cat|}}
|
|
|
|
<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}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div class="text-center {{if (gt categories.length 0) "mt-4"}}">
|
2018-12-12 13:35:16 +00:00
|
|
|
{{#link-to "folder.settings" space.id space.slug (query-params tab="categories") class="btn btn-secondary bold-700"}}{{categoryLinkName}}{{/link-to}}
|
2018-05-24 18:09:38 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|