2021-01-22 12:24:33 +03:00
|
|
|
<div class="flex flex-column h-100">
|
2021-01-28 16:57:14 +03:00
|
|
|
<header class="modal-header gh-post-preview-header gh-post-preview-header-border" data-test-modal="preview-email">
|
|
|
|
<div>
|
|
|
|
<button class="blue link" title="Close" {{on "click" this.close}}>
|
|
|
|
{{svg-jar "arrow-left" class="w3 fill-blue mr1 nudge-right--2 nudge-top--1"}}
|
|
|
|
Back
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="gh-contentfilter gh-btn-group gh-post-preview-btn-group" style="display:flex;flex-grow:1;justify-content:center">
|
|
|
|
<button type="button" class="gh-btn {{if (eq this.tab "browser") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "browser")}}><span>{{svg-jar "desktop"}}</span></button>
|
|
|
|
<button type="button" class="gh-btn {{if (eq this.tab "mobile") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "mobile")}}><span>{{svg-jar "mobile-phone"}}</span></button>
|
2021-02-01 20:59:18 +03:00
|
|
|
{{#if @model.post.isPost}}
|
2021-01-28 16:57:14 +03:00
|
|
|
<button type="button" class="gh-btn {{if (eq this.tab "email") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "email")}}><span>{{svg-jar "email-unread"}}</span></button>
|
2021-01-27 01:49:05 +03:00
|
|
|
{{/if}}
|
2021-01-28 16:57:14 +03:00
|
|
|
<button type="button" class="gh-btn {{if (eq this.tab "social") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "social")}}><span>{{svg-jar "social-share"}}</span></button>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|
2021-02-01 20:59:18 +03:00
|
|
|
|
|
|
|
<GhPublishmenu
|
|
|
|
@post={{@model.post}}
|
|
|
|
@postStatus={{@model.post.status}}
|
|
|
|
@saveTask={{@model.saveTask}}
|
|
|
|
@setSaveType={{@model.setEditorSaveType}}
|
|
|
|
@memberCount={{@model.memberCount}} />
|
2021-01-22 12:24:33 +03:00
|
|
|
</header>
|
|
|
|
|
2021-01-27 01:49:05 +03:00
|
|
|
{{#if (eq this.tab "browser")}}
|
2021-02-01 20:59:18 +03:00
|
|
|
<ModalPostPreview::Browser @post={{@model.post}} />
|
2021-01-22 12:24:33 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2021-02-01 20:59:18 +03:00
|
|
|
{{#if (and (eq this.tab "mobile") @model.post.isPost)}}
|
|
|
|
<ModalPostPreview::Mobile @post={{@model.post}} />
|
2021-01-28 16:57:14 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2021-02-01 20:59:18 +03:00
|
|
|
{{#if (and (eq this.tab "email") @model.post.isPost)}}
|
|
|
|
<ModalPostPreview::Email @post={{@model.post}} />
|
2021-01-22 12:24:33 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq this.tab "social")}}
|
2021-02-01 20:59:18 +03:00
|
|
|
<ModalPostPreview::Social @post={{@model.post}} />
|
2021-01-22 12:24:33 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|