1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00
documize/gui/app/templates/components/document/documents-list.hbs
McMatts c65eb97948 Show jump list to other space documents
Closes #219

Jump to documents within space when viewing a document.
2019-05-24 15:08:54 +01:00

17 lines
730 B
Handlebars

{{#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}}