2021-09-08 16:29:33 +03:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="flex flex-column h-100">
|
|
|
|
<header class="modal-header gh-post-preview-header gh-post-preview-header-border" data-test-modal="preview-email">
|
|
|
|
<div>
|
2022-02-02 19:09:43 +03:00
|
|
|
<button class="gh-editor-back-button" title="Close" type="button" {{on "click" @close}}>
|
2021-09-08 16:29:33 +03:00
|
|
|
<span>{{svg-jar "arrow-left"}} Back</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="gh-post-preview-btn-group">
|
|
|
|
<div class="gh-contentfilter gh-btn-group">
|
|
|
|
<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>
|
2022-02-11 11:29:11 +03:00
|
|
|
{{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled"))}}
|
2022-01-27 14:40:11 +03:00
|
|
|
{{#if @data.post.isPost}}
|
|
|
|
<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>
|
|
|
|
{{/if}}
|
2021-09-08 16:29:33 +03:00
|
|
|
{{/if}}
|
|
|
|
<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 "twitter"}}</span></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-02-02 19:09:43 +03:00
|
|
|
{{#unless this.session.user.isContributor}}
|
2022-02-01 20:59:20 +03:00
|
|
|
<GhPublishmenu
|
|
|
|
@post={{@data.post}}
|
|
|
|
@postStatus={{@data.post.status}}
|
|
|
|
@saveTask={{@data.saveTask}}
|
|
|
|
@setSaveType={{@data.setEditorSaveType}}
|
|
|
|
@uiContext="preview" />
|
2022-02-02 19:09:43 +03:00
|
|
|
{{/unless}}
|
2021-09-08 16:29:33 +03:00
|
|
|
</header>
|
|
|
|
|
2021-11-09 15:12:46 +03:00
|
|
|
{{#if this.saveFirstTask.isRunning}}
|
|
|
|
<GhLoadingSpinner />
|
|
|
|
{{else}}
|
|
|
|
{{#if (eq this.tab "browser")}}
|
|
|
|
<Modals::PostPreview::Browser @post={{@data.post}} />
|
|
|
|
{{/if}}
|
2021-09-08 16:29:33 +03:00
|
|
|
|
2021-11-09 15:12:46 +03:00
|
|
|
{{#if (and (eq this.tab "mobile"))}}
|
|
|
|
<Modals::PostPreview::Mobile @post={{@data.post}} />
|
|
|
|
{{/if}}
|
2021-09-08 16:29:33 +03:00
|
|
|
|
2021-11-09 15:12:46 +03:00
|
|
|
{{#if (and (eq this.tab "email") @data.post.isPost)}}
|
|
|
|
<Modals::PostPreview::Email @post={{@data.post}} />
|
|
|
|
{{/if}}
|
2021-09-08 16:29:33 +03:00
|
|
|
|
2021-11-09 15:12:46 +03:00
|
|
|
{{#if (eq this.tab "social")}}
|
|
|
|
<Modals::PostPreview::Social @post={{@data.post}} />
|
|
|
|
{{/if}}
|
2021-09-08 16:29:33 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-04-21 12:54:48 +03:00
|
|
|
</div>
|