2017-12-11 14:39:12 +00:00
|
|
|
{{toolbar/nav-bar}}
|
2017-12-04 14:47:44 +00:00
|
|
|
|
|
|
|
<div class="container">
|
2017-12-05 19:03:38 +00:00
|
|
|
{{toolbar/for-document document=model.document spaces=model.folders space=model.folder permissions=model.permissions onDocumentDelete=(action 'onDocumentDelete') onSaveTemplate=(action 'onSaveTemplate')}}
|
|
|
|
|
2017-12-04 14:47:44 +00:00
|
|
|
{{document/document-heading document=model.document permissions=model.permissions onSaveDocument=(action 'onSaveDocument')}}
|
2017-12-05 19:03:38 +00:00
|
|
|
|
2017-12-05 10:46:53 +00:00
|
|
|
{{document/document-meta document=model.document folder=model.folder folders=model.folders permissions=model.permissions onSaveDocument=(action 'onSaveDocument')}}
|
2017-12-04 14:47:44 +00:00
|
|
|
|
2017-12-05 19:03:38 +00:00
|
|
|
<ul class="tabnav-control">
|
2017-12-11 11:40:12 +00:00
|
|
|
<li class="tab {{if (eq tab 'content') 'selected'}}" {{action 'onTabChange' 'content'}}>Content</li>
|
|
|
|
<li class="tab {{if (eq tab 'attachment') 'selected'}}" {{action 'onTabChange' 'attachment'}}>Attachments</li>
|
|
|
|
<li class="tab {{if (eq tab 'activity') 'selected'}}" {{action 'onTabChange' 'activity'}}>Activity</li>
|
|
|
|
<li class="tab {{if (eq tab 'revision') 'selected'}}" {{action 'onTabChange' 'revision'}}>Revisions</li>
|
2017-12-05 19:03:38 +00:00
|
|
|
</ul>
|
|
|
|
|
2017-12-11 11:40:12 +00:00
|
|
|
{{#if (eq tab 'content')}}
|
|
|
|
{{document/view-content
|
|
|
|
document=model.document links=model.links pages=model.pages
|
|
|
|
folder=model.folder folders=model.folders sections=model.sections permissions=model.permissions pageId=pageId
|
|
|
|
onSavePage=(action 'onSavePage') onInsertSection=(action 'onInsertSection')
|
|
|
|
onSavePageAsBlock=(action 'onSavePageAsBlock') onDeleteBlock=(action 'onDeleteBlock') onGotoPage=(action 'onGotoPage')
|
|
|
|
onCopyPage=(action 'onCopyPage') onMovePage=(action 'onMovePage') onDeletePage=(action 'onPageDeleted')}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq tab 'attachment')}}
|
|
|
|
{{document/view-attachment document=model.document permissions=model.permissions}}
|
|
|
|
{{/if}}
|
2017-10-03 17:52:03 -04:00
|
|
|
|
2017-12-11 12:04:48 +00:00
|
|
|
{{#if (eq tab 'activity')}}
|
|
|
|
{{document/view-activity document=model.document pages=model.pages permissions=model.permissions}}
|
|
|
|
{{/if}}
|
2017-12-11 13:45:56 +00:00
|
|
|
|
|
|
|
{{#if (eq tab 'revision')}}
|
|
|
|
{{document/view-revision document=model.document folder=model.folder pages=model.pages onRollback=(action 'onRollback')}}
|
|
|
|
{{/if}}
|
2017-12-11 12:04:48 +00:00
|
|
|
|
2017-12-05 19:03:38 +00:00
|
|
|
<div id="zone-document-content" class="zone-document-content">
|
2017-12-04 17:25:33 +00:00
|
|
|
{{document/document-sidebar tab=tab
|
|
|
|
document=model.document folder=model.folder pages=model.pages page=model.page permissions=model.permissions
|
|
|
|
onPageSequenceChange=(action 'onPageSequenceChange') onPageLevelChange=(action 'onPageLevelChange')
|
|
|
|
onGotoPage=(action 'onGotoPage')}}
|
2017-12-04 14:47:44 +00:00
|
|
|
</div>
|
2017-12-05 19:03:38 +00:00
|
|
|
|
2017-12-11 11:40:12 +00:00
|
|
|
</div>
|