1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00
documize/gui/app/templates/components/document/documents-list.hbs
McMatts c49707d160 Make popups close on doble-click + quote @size attrs
1. Popups should close on subsequent trigger clicks
2. @attrs should be quoted as oper linter warnings.
2019-05-28 10:59:48 +01:00

17 lines
737 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="click 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}}