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-01-23 15:46:27 +00:00
|
|
|
{{ui/ui-spacer size=100}}
|
2018-06-01 11:49:09 +01:00
|
|
|
{{document/document-page
|
|
|
|
roles=roles
|
|
|
|
pages=pages
|
|
|
|
folder=folder
|
|
|
|
toEdit=toEdit
|
|
|
|
blocks=blocks
|
|
|
|
page=item.page
|
|
|
|
meta=item.meta
|
|
|
|
document=document
|
|
|
|
pending=item.pending
|
|
|
|
permissions=permissions
|
|
|
|
refresh=(action refresh)
|
2018-12-08 20:54:19 +00:00
|
|
|
onSavePage=(action "onSavePage")
|
|
|
|
onCopyPage=(action "onCopyPage")
|
|
|
|
onMovePage=(action "onMovePage")
|
|
|
|
onDeletePage=(action "onDeletePage")
|
|
|
|
onSavePageAsBlock=(action "onSavePageAsBlock")
|
2018-06-01 11:49:09 +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">
|
|
|
|
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}}>
|
|
|
|
{{#attach-tooltip showDelay=1000}}Insert section here{{/attach-tooltip}}
|
|
|
|
</i>
|
|
|
|
</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}}
|
|
|
|
<div class="thanks">Thanks for the feedback!</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="prompt">{{folder.likes}}</div>
|
|
|
|
{{ui/ui-spacer size=200}}
|
|
|
|
<div class="buttons">
|
|
|
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Yes, thanks!" onClick=(action "onVote" 1)}}
|
|
|
|
{{ui/ui-button-gap}}
|
|
|
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Not really" onClick=(action "onVote" 2)}}
|
|
|
|
</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)}}
|
|
|
|
{{/if}}
|