mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Non-admins receive popovers on hover. Admins receive no popovers and get click-through to settings tab. Space and document settings support jump to sub-section. Co-Authored-By: Harvey Kandola <harvey@documize.com>
35 lines
No EOL
1.3 KiB
Handlebars
35 lines
No EOL
1.3 KiB
Handlebars
<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>
|
|
|
|
<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}}
|
|
</div>
|
|
<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>
|
|
|
|
{{#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}}
|
|
</div>
|
|
{{/if}}
|
|
</div> |