{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}} {{ui/ui-toolbar-icon icon=constants.Icon.Blocks color=constants.Color.Gray tooltip="Complete" selected=(eq viewDensity "1") onClick=(action "onSwitchView" "1")}} {{ui/ui-toolbar-icon icon=constants.Icon.All color=constants.Color.Gray tooltip="Comfort" selected=(eq viewDensity "2") onClick=(action "onSwitchView" "2")}} {{ui/ui-toolbar-label label="—" color=constants.Color.Gray tooltip="Compact" selected=(eq viewDensity "3") onClick=(action "onSwitchView" "3")}} {{#ui/ui-toolbar-icon icon=constants.Icon.Sort color=constants.Color.Gray tooltip="Sort"}} {{#attach-popover class="ember-attacher-popper" hideOn="click" showOn="click" isShown=false placement="bottom-end" as |attacher|}}
  • Name
  • Created date
  • Last updated
  • Ascending
  • Descending
{{ui/ui-button light=true color=constants.Color.Yellow label=constants.Label.Sort onClick=(action "onSortBy" attacher)}}
{{/attach-popover}} {{/ui/ui-toolbar-icon}} {{/ui/ui-toolbar}}
    {{#each documents key="id" as |document|}}
  • {{#link-to "document.index" space.id space.slug document.id document.slug class="info"}}
    {{ document.name }}
    {{#if (not-eq viewDensity "3")}}
    {{ document.excerpt }}
    {{/if}} {{#if (eq viewDensity "1")}}
    {{document.lifecycleLabel}}
    {{folder/document-categories categories=document.category}} {{folder/document-tags documentTags=document.tags}}
    {{/if}} {{/link-to}} {{#if hasDocumentActions}}
    {{#if document.selected}} {{else}} {{/if}}
    {{#if document.selected}}
    {{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}} {{ui/ui-toolbar-icon icon=constants.Icon.Export color=constants.Color.Gray tooltip="Export content" onClick=(action "onExport")}} {{#if permissions.documentMove}} {{ui/ui-toolbar-icon icon=constants.Icon.Export2 color=constants.Color.Gray tooltip="Move to another space" onClick=(action "onShowMoveDocuments")}} {{/if}} {{#if permissions.documentDelete}} {{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete" onClick=(action "onShowDeleteDocuments")}} {{/if}} {{/ui/ui-toolbar}}
    {{/if}} {{/if}}
  • {{/each}}
{{#ui/ui-dialog title="Delete Documents" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDeleteDocuments")}}

Are you sure you want to delete {{selectedDocuments.length}} {{selectedCaption}}?

{{/ui/ui-dialog}} {{#ui/ui-dialog title="Move Documents" confirmCaption="Move" buttonColor=constants.Color.Green show=showMoveDialog onAction=(action "onMoveDocuments")}}

Select space for {{selectedDocuments.length}} {{selectedCaption}}

{{ui/ui-list-picker items=moveOptions nameField="name" singleSelect=true}} {{/ui/ui-dialog}} {{#if showAdd}} {{ui/empty-state icon=constants.Icon.ArrowUp message="Add documents via + CONTENT"}} {{/if}} {{#if showLockout}} {{ui/empty-state icon=constants.Icon.Preview message="Space permissions are preventing you from viewing and creating documents"}} {{/if}}