Ghost/ghost/admin/app/components/modal-post-preview/browser.hbs
Kevin Ansfield 7f7d2cafc6 Added share/send preview footers to post preview modal
refs https://github.com/TryGhost/Team/issues/451

- disabled email tab when previewing a page (pages can't be emailed)
- added share preview url footer to browser tab
- added send preview footer to email tab
- added first pass at social tab contents
2021-02-02 16:08:05 +00:00

20 lines
840 B
Handlebars

<div class="modal-body modal-preview-email-content gh-pe-desktop-container flex-grow-1 h-auto overflow-auto">
<div class="gh-pe-emailclient-mockup">
<iframe class="gh-pe-iframe" src={{@post.previewUrl}} style="height: 100%"></iframe>
</div>
</div>
<div class="flex items-center pa4 pl8 bt b--whitegrey">
<span class="mr3 flex-grow-1 nowrap">Share this preview privately</span>
<div class="mr3 truncate midlightgrey">
{{@post.previewUrl}}
</div>
<button type="button" {{on "click" (perform this.copyPreviewUrl)}} class="gh-btn gh-btn-green gh-btn-icon">
<span>
{{#if this.copyPreviewUrl.isRunning}}
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-white"}} Copied
{{else}}
Copy
{{/if}}
</span>
</button>
</div>