mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Per space label, icon, description
Labels introduce visual grouping and filtering of spaces.
This commit is contained in:
parent
fe8068965c
commit
a211ba051a
106 changed files with 3280 additions and 1008 deletions
1
gui/app/templates/components/spaces/space-label.hbs
Normal file
1
gui/app/templates/components/spaces/space-label.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{label.name}}
|
|
@ -4,10 +4,17 @@
|
|||
{{#link-to "folder.index" space.id space.slug}}
|
||||
<li class="item">
|
||||
<div class="info">
|
||||
<div class="name">{{space.name}}</div>
|
||||
<div class="desc">Some description that is to be wired up to the backend</div>
|
||||
<div class="name">
|
||||
{{#if space.icon}}
|
||||
<div class="icon">
|
||||
{{ui/ui-icon-meta icon=space.icon}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{space.name}}
|
||||
</div>
|
||||
<div class="desc">{{space.desc}} </div>
|
||||
<div class="meta">
|
||||
{{#if (eq space.spaceType constants.SpaceType.Public)}}
|
||||
{{!-- {{#if (eq space.spaceType constants.SpaceType.Public)}}
|
||||
<i class={{concat "dicon " constants.Icon.World}}>
|
||||
{{#attach-tooltip showDelay=1000}}Public space{{/attach-tooltip}}
|
||||
</i>
|
||||
|
@ -21,16 +28,19 @@
|
|||
<i class={{concat "dicon " constants.Icon.Person}}>
|
||||
{{#attach-tooltip showDelay=1000}}Personal space{{/attach-tooltip}}
|
||||
</i>
|
||||
{{/if}} --}}
|
||||
{{#if space.labelId}}
|
||||
{{spaces/space-label labels=labels labelId=space.labelId}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<div class="stat">
|
||||
<div class="number">18</div>
|
||||
<div class="number">{{space.countContent}}</div>
|
||||
<div class="label">items</div>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<div class="number">5</div>
|
||||
<div class="number">{{space.countCategory}}</div>
|
||||
<div class="label">categories</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue