1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-28 09:39:42 +02:00
documize/gui/app/templates/components/folder/space-view.hbs

35 lines
1.3 KiB
Handlebars
Raw Normal View History

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)}}
<li class="tab tab-vertical {{if uncategorizedSelected 'selected'}}" {{action 'onDocumentFilter' 'uncategorized' space.id}}>Uncategorized ({{rootDocCount}})</li>
{{/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|}}
<li class="tab tab-vertical {{if cat.selected 'selected'}}" {{action 'onDocumentFilter' 'category' cat.id}}>{{cat.category}} ({{cat.docCount}})</li>
{{/each}}
</ul>
2018-05-24 18:09:38 +01:00
{{#if spaceSettings}}
<div class="text-center {{if (gt categories.length 0) 'mt-4'}}">
{{#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>