0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #5204 from JohnONolan/preview-link

Minor preview link style amends
This commit is contained in:
Hannah Wolfe 2015-05-01 11:51:38 +01:00
commit ef7492a5c6
2 changed files with 14 additions and 5 deletions

View file

@ -692,11 +692,15 @@ body.zen {
}
}//.post-settings-menu
.post-preview-link {
.post-view-link {
position: absolute;
top: 0;
top: 1px;
right: 0;
font-size: 1.3rem;
i {
font-size: 10px;
}
}

View file

@ -11,11 +11,16 @@
<form>
<div class="form-group">
<label for="url">Post URL</label>
{{#if model.isDraft}}
<a class="post-preview-link" target="_blank" href="{{model.previewUrl}}">
Preview<span class="icon-external"></span>
{{#if model.isPublished}}
<a class="post-view-link" target="_blank" href="{{model.absoluteUrl}}">
View post <i class="icon-external"></i>
</a>
{{else}}
<a class="post-view-link" target="_blank" href="{{model.previewUrl}}">
Preview <i class="icon-external"></i>
</a>
{{/if}}
<span class="input-icon icon-link">
{{gh-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" selectOnClick="true" stopEnterKeyDownPropagation="true"}}
</span>