mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
cebe43935c
refs 80e2103f1d
- changed button to a link and added necessary attributes
- copied button to the mobile view for consistency
23 lines
985 B
Handlebars
23 lines
985 B
Handlebars
<div class="gh-post-preview-browser-container">
|
|
<iframe class="gh-pe-iframe" src={{@post.previewUrl}} style="height: 100%"></iframe>
|
|
</div>
|
|
<div class="gh-post-preview-browser-footer">
|
|
<span class="mr3 nowrap fw6 f8 darkgrey">Share preview privately</span>
|
|
<div class="gh-post-preview-url-container truncate">
|
|
<span class="db truncate w-90">{{@post.previewUrl}}</span>
|
|
</div>
|
|
<button type="button" {{on "click" (perform this.copyPreviewUrl)}} class="gh-btn gh-btn-green gh-btn-icon gh-post-preview-copy-url-trigger">
|
|
<span>
|
|
{{#if this.copyPreviewUrl.isRunning}}
|
|
Copied!
|
|
{{else}}
|
|
copy
|
|
{{/if}}
|
|
</span>
|
|
</button>
|
|
<div>
|
|
<a href={{@post.previewUrl}} target="_blank" rel="noopener noreferrer" class="gh-btn gh-btn-editor gh-btn-icon gh-btn-icon-right gh-btn-external">
|
|
<span>Open in new tab {{svg-jar "external"}}</span>
|
|
</a>
|
|
</div>
|
|
</div> |