mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Display category names in documents list (space view)
We pre-fetch category names and attach them to documents.
This commit is contained in:
parent
1d4a20cdfe
commit
5467771542
8 changed files with 804 additions and 722 deletions
|
@ -0,0 +1,8 @@
|
|||
{{#if categories}}
|
||||
{{#each categories as |cat|}}
|
||||
<div class="category">
|
||||
<i class="dicon {{constants.Icon.Category}}" />
|
||||
<div class="name">{{cat}}</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/if}}
|
|
@ -14,7 +14,7 @@
|
|||
{{document.lifecycleLabel}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{folder/document-categories categories=document.category}}
|
||||
{{folder/document-tags documentTags=document.tags}}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue