2020-11-16 14:16:51 +03:00
|
|
|
<header class="modal-header gh-pe-header gh-pe-header-border" data-test-modal="preview-email" style="display:flex">
|
2019-12-13 17:20:29 +03:00
|
|
|
<h2 class="f6 fw6">{{this.subject}}</h2>
|
2021-02-22 23:14:16 +03:00
|
|
|
<div>
|
|
|
|
<div class="gh-contentfilter gh-btn-group gh-pe-btn-group" style="display:flex;flex-grow:1;justify-content:center">
|
|
|
|
<button class="gh-btn {{if (eq this.type "desktop") "gh-btn-group-selected"}}" {{action "changeType" "desktop"}}><span>Desktop</span></button>
|
|
|
|
<button class="gh-btn {{if (eq this.type "mobile") "gh-btn-group-selected"}}" {{action "changeType" "mobile"}}><span>Mobile</span></button>
|
|
|
|
</div>
|
2019-11-06 08:07:43 +03:00
|
|
|
</div>
|
2019-11-07 07:09:47 +03:00
|
|
|
<div class="gh-pe-close">
|
2019-12-13 17:20:29 +03:00
|
|
|
<button class="close" href title="Close" {{on "click" this.closeModal}}>
|
2019-11-07 07:09:47 +03:00
|
|
|
{{svg-jar "close"}}
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-11-05 08:21:29 +03:00
|
|
|
</header>
|
2019-11-07 13:11:53 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if (eq this.type "mobile")}}
|
2020-11-16 14:16:51 +03:00
|
|
|
<div class="modal-body modal-preview-email-content gh-pe-mobile-container">
|
2019-11-07 13:11:53 +03:00
|
|
|
<div class="gh-pe-mobile-bezel">
|
|
|
|
<div class="gh-pe-mobile-screen">
|
2020-11-16 14:16:51 +03:00
|
|
|
<div class="gh-pe-emailclient-sender">
|
|
|
|
<p>
|
|
|
|
<span class="strong">{{this.config.blogTitle}}</span> <{{this.settings.membersFromAddress}}>
|
|
|
|
</p>
|
|
|
|
<p><span class="dark">To:</span> Jamie Larson <jamie@example.com></p>
|
|
|
|
</div>
|
2020-05-08 13:54:18 +03:00
|
|
|
<iframe class="bn gh-pe-iframe" {{did-insert this.renderEmailPreview}} sandbox="allow-same-origin"></iframe>
|
2019-11-05 08:21:29 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-07 13:11:53 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if (eq this.type "desktop")}}
|
2019-11-06 11:58:01 +03:00
|
|
|
<div class="modal-body modal-preview-email-content gh-pe-desktop-container">
|
2020-11-16 14:16:51 +03:00
|
|
|
<div class="gh-pe-emailclient-mockup">
|
|
|
|
<div class="gh-pe-emailclient-sender">
|
|
|
|
<p>
|
|
|
|
<span class="strong">{{this.config.blogTitle}}</span> <{{this.settings.membersFromAddress}}>
|
|
|
|
</p>
|
|
|
|
<p><span class="dark">To:</span> Jamie Larson <jamie@example.com></p>
|
|
|
|
</div>
|
|
|
|
<iframe class="gh-pe-iframe" {{did-insert this.renderEmailPreview}} sandbox="allow-same-origin"></iframe>
|
|
|
|
</div>
|
2019-11-05 08:21:29 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|