diff --git a/app/app/components/document/document-view.js b/app/app/components/document/document-view.js index 5ecbbe32..4af199e1 100644 --- a/app/app/components/document/document-view.js +++ b/app/app/components/document/document-view.js @@ -35,6 +35,11 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, { children: false }, + noSections: Ember.computed('pages', function() { + console.log(this.get('pages.length')); + return this.get('pages.length') === 1; + }), + didInsertElement() { let self = this; diff --git a/app/app/styles/view/document/content.scss b/app/app/styles/view/document/content.scss index 73f5e725..857f50ec 100644 --- a/app/app/styles/view/document/content.scss +++ b/app/app/styles/view/document/content.scss @@ -65,11 +65,8 @@ } > .pages { - > .wysiwyg { - > .is-a-page { - .page-title { > .page-toolbar { @@ -92,3 +89,27 @@ } } } + +.no-sections { + text-align: center; + opacity: 0.7; + + > .box { + padding: 35px; + width: 300px; + display: inline-block; + margin: 0 20px; + + > .message { + font-size: 14px; + color: $color-gray; + margin-top: 35px; + } + + > .regular-button { + cursor: default !important; + } + + } +} + diff --git a/app/app/styles/view/page-documents.scss b/app/app/styles/view/page-documents.scss index 00a6d230..ae08df4a 100644 --- a/app/app/styles/view/page-documents.scss +++ b/app/app/styles/view/page-documents.scss @@ -149,3 +149,27 @@ text-align: center; margin: 2rem 0; } + +.no-documents { + margin-top: 100px; + text-align: center; + opacity: 0.7; + + > .box { + padding: 35px; + width: 300px; + display: inline-block; + margin: 0 20px; + + > .message { + font-size: 14px; + color: $color-gray; + margin-top: 35px; + } + + > .regular-button { + cursor: default !important; + } + + } +} diff --git a/app/app/templates/components/document/document-view.hbs b/app/app/templates/components/document/document-view.hbs index 68a1d7d3..bca57ad0 100644 --- a/app/app/templates/components/document/document-view.hbs +++ b/app/app/templates/components/document/document-view.hbs @@ -80,3 +80,14 @@ +{{#if noSections}} +