mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Show jump list to other space documents
Closes #219 Jump to documents within space when viewing a document.
This commit is contained in:
parent
bc9dab72f2
commit
c65eb97948
26 changed files with 341 additions and 235 deletions
|
@ -1,4 +1,4 @@
|
|||
{{#ui/ui-toolbar dark=false light=false raised=false large=true bordered=false}}
|
||||
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
{{#if permissions.documentEdit}}
|
||||
{{#ui/ui-toolbar-dropdown label="Actions" arrow=true}}
|
||||
|
|
17
gui/app/templates/components/document/documents-list.hbs
Normal file
17
gui/app/templates/components/document/documents-list.hbs
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||
{{ui/ui-toolbar-button themed=true uppercase=false
|
||||
icon=constants.Icon.ArrowLeft label=space.name onClick=(action "onSpace")}}
|
||||
{{#if docs}}
|
||||
{{#ui/ui-toolbar-icon icon=constants.Icon.ArrowSmallDown}}
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false placement="bottom-middle"}}
|
||||
<ul class="menu">
|
||||
{{#each docs as |doc|}}
|
||||
{{#if (not-eq doc.id docId)}}
|
||||
{{#link-to "document.index" doc.spaceId doc.spaceId doc.id doc.slug class="item"}}{{doc.name}}{{/link-to}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/attach-popover}}
|
||||
{{/ui/ui-toolbar-icon}}
|
||||
{{/if}}
|
||||
{{/ui/ui-toolbar}}
|
Loading…
Add table
Add a link
Reference in a new issue