2018-05-30 11:27:29 +01:00
|
|
|
{{#if hasPages}}
|
2018-12-08 20:54:19 +00:00
|
|
|
{{#each pages key="id" as |item|}}
|
2019-06-05 11:09:24 +01:00
|
|
|
<Ui::UiSpacer @size="100" id={{concat "page-spacer-" item.page.id}} />
|
2018-06-01 11:49:09 +01:00
|
|
|
{{document/document-page
|
2019-06-05 11:09:24 +01:00
|
|
|
expandState=expandState
|
2018-06-01 11:49:09 +01:00
|
|
|
roles=roles
|
|
|
|
pages=pages
|
|
|
|
folder=folder
|
2019-06-06 17:58:48 +01:00
|
|
|
folders=folders
|
2018-06-01 11:49:09 +01:00
|
|
|
toEdit=toEdit
|
|
|
|
blocks=blocks
|
|
|
|
page=item.page
|
|
|
|
meta=item.meta
|
|
|
|
document=document
|
|
|
|
pending=item.pending
|
|
|
|
permissions=permissions
|
2019-04-18 13:31:48 +01:00
|
|
|
attachments=attachments
|
2019-06-05 12:52:15 +01:00
|
|
|
currentPageId=currentPageId
|
2018-06-01 11:49:09 +01:00
|
|
|
refresh=(action refresh)
|
2019-06-05 11:09:24 +01:00
|
|
|
onExpand=(action onExpand)
|
2019-04-18 13:31:48 +01:00
|
|
|
onAttachmentUpload=(action onAttachmentUpload)
|
|
|
|
onAttachmentDelete=(action onAttachmentDelete)
|
2018-12-08 20:54:19 +00:00
|
|
|
onSavePage=(action "onSavePage")
|
|
|
|
onCopyPage=(action "onCopyPage")
|
|
|
|
onMovePage=(action "onMovePage")
|
|
|
|
onDeletePage=(action "onDeletePage")
|
|
|
|
onSavePageAsBlock=(action "onSavePageAsBlock")
|
2019-05-20 10:39:48 +01:00
|
|
|
onPageLevelChange=(action onPageLevelChange)
|
2019-01-23 15:46:27 +00:00
|
|
|
onPageSequenceChange=(action onPageSequenceChange)
|
|
|
|
onShowSectionWizard=(action "onShowSectionWizard")}}
|
2018-06-01 11:49:09 +01:00
|
|
|
{{/each}}
|
2019-01-23 15:46:27 +00:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if canEdit}}
|
|
|
|
<div class="start-section">
|
2022-03-09 15:20:16 -05:00
|
|
|
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}} title={{localize 'section_insert_here'}} role="button" tabindex="0" />
|
2019-01-23 15:46:27 +00:00
|
|
|
</div>
|
2018-06-01 11:49:09 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2019-01-24 13:51:55 +00:00
|
|
|
{{#if showLikes}}
|
|
|
|
<div class="vote-box no-print">
|
|
|
|
{{#if voteThanks}}
|
2022-03-09 15:20:16 -05:00
|
|
|
<div class="thanks">{{localize 'feedback_thanks'}}</div>
|
2019-01-24 13:51:55 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="prompt">{{folder.likes}}</div>
|
2019-05-28 10:59:48 +01:00
|
|
|
<Ui::UiSpacer @size="200" />
|
2019-01-24 13:51:55 +00:00
|
|
|
<div class="buttons">
|
2022-03-09 15:20:16 -05:00
|
|
|
{{ui/ui-button color=constants.Color.Yellow light=true label=(localize 'feedback_help_yes') onClick=(action "onVote" 1)}}
|
2019-01-24 13:51:55 +00:00
|
|
|
{{ui/ui-button-gap}}
|
2022-03-09 15:20:16 -05:00
|
|
|
{{ui/ui-button color=constants.Color.Yellow light=true label=(localize 'feedback_help_no') onClick=(action "onVote" 2)}}
|
2019-01-24 13:51:55 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2018-06-04 14:37:21 +01:00
|
|
|
{{#if canEdit}}
|
|
|
|
{{document/add-section
|
|
|
|
pages=pages
|
|
|
|
blocks=blocks
|
|
|
|
folder=folder
|
|
|
|
toEdit=toEdit
|
|
|
|
folders=folders
|
|
|
|
sections=sections
|
|
|
|
document=document
|
|
|
|
permissions=permissions
|
|
|
|
show=showInsertSectionModal
|
|
|
|
beforePage=newSectionLocation
|
|
|
|
onInsertSection=(action onInsertSection)}}
|
2019-05-20 10:39:48 +01:00
|
|
|
{{/if}}
|