mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
select space root or category docs
This commit is contained in:
parent
8d761da939
commit
ba5988dca3
8 changed files with 105 additions and 100 deletions
|
@ -42,7 +42,7 @@
|
|||
{{/unless}}
|
||||
<ul class="list">
|
||||
{{#each publicFolders as |folder|}}
|
||||
{{#link-to 'folder' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
{{#link-to 'folder.index' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
<li class="item">{{ folder.name }}</li>
|
||||
{{/link-to}}
|
||||
{{/each}}
|
||||
|
@ -57,7 +57,7 @@
|
|||
{{/unless}}
|
||||
<ul class="list">
|
||||
{{#each protectedFolders as |folder|}}
|
||||
{{#link-to 'folder' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
{{#link-to 'folder.index' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
<li class="item">{{ folder.name }}</li>
|
||||
{{/link-to}}
|
||||
{{/each}}
|
||||
|
@ -71,7 +71,7 @@
|
|||
{{/unless}}
|
||||
<ul class="list">
|
||||
{{#each privateFolders as |folder|}}
|
||||
{{#link-to 'folder' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
{{#link-to 'folder.index' folder.id folder.slug class="link" activeClass='selected' }}
|
||||
<li class="item">{{ folder.name }}</li>
|
||||
{{/link-to}}
|
||||
{{/each}}
|
||||
|
|
|
@ -13,16 +13,18 @@
|
|||
onImport=(action 'onImport') onHideStartDocument=(action 'onHideStartDocument')}}
|
||||
{{else}}
|
||||
|
||||
{{#if (gt categories.length 0)}}
|
||||
{{#if hasCategories}}
|
||||
<div class="category-filter">
|
||||
{{#if (gt rootDocCount 0)}}
|
||||
<div class="regular-button button-white {{if (eq folder.id selectedCategory) 'selected'}}" id="uncategorized-button" data-tooltip="Documents without category" data-tooltip-position="top center" {{action 'onDocumentFilter' 'space' folder.id}}>
|
||||
<div class="regular-button button-white {{if spaceSelected 'selected'}}"
|
||||
id="uncategorized-button" data-tooltip="Documents without category" data-tooltip-position="top center"
|
||||
{{action 'onDocumentFilter' 'space' folder.id}}>
|
||||
{{folder.name}} ({{rootDocCount}})
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#each categories as |cat index|}}
|
||||
<div class="button-gap"/>
|
||||
<div class="regular-button button-white {{if (eq cat.id selectedCategory) 'selected'}}" {{action 'onDocumentFilter' 'category' cat.id}}>
|
||||
<div class="regular-button button-white {{if cat.selected 'selected'}}" {{action 'onDocumentFilter' 'category' cat.id}}>
|
||||
{{cat.category}} ({{cat.docCount}})
|
||||
</div>
|
||||
{{/each}}
|
||||
|
@ -30,7 +32,6 @@
|
|||
{{/if}}
|
||||
|
||||
{{folder/documents-list documents=filteredDocs folders=folders folder=folder
|
||||
templates=templates permissions=permissions selectedDocuments=(mut selectedDocuments)
|
||||
onImport=(action 'onImport')}}
|
||||
templates=templates permissions=permissions selectedDocuments=(mut selectedDocuments)}}
|
||||
|
||||
{{/if}}
|
Loading…
Add table
Add a link
Reference in a new issue