1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Show quick list and jump to other spaces with same label

Closes #275
This commit is contained in:
McMatts 2019-05-24 13:45:01 +01:00
parent 6ae9414361
commit bc9dab72f2
2 changed files with 20 additions and 0 deletions

View file

@ -44,6 +44,19 @@
<div class="space-label">Unclassified</div>
{{else}}
<div class="space-label" style={{{model.label.bgColor}}}>{{model.label.name}}</div>
<i class="space-label-dropdown dicon {{constants.Icon.ArrowSmallDown}}">
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false placement="bottom-middle"}}
<ul class="menu">
{{#each model.folders as |space|}}
{{#if (eq space.labelId model.label.id)}}
{{#if (not-eq space.id model.folder.id)}}
{{#link-to "folder.index" space.id space.slug class="item"}}{{space.name}}{{/link-to}}
{{/if}}
{{/if}}
{{/each}}
</ul>
{{/attach-popover}}
</i>
{{/if}}
{{layout/logo-heading

View file

@ -10,7 +10,14 @@
color: map-get($gray-shades, 100);
}
.space-label-dropdown {
font-size: 25px;
vertical-align: middle;
cursor: pointer;
}
.view-space {
> .documents {
margin: 0;
padding: 0;