From 8e46b06c67d930a5324284fb86171e6b9fab89ef Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Fri, 1 May 2015 11:13:39 +0200 Subject: [PATCH] Update preview post link styling, add view post link --- core/client/app/styles/layouts/editor.scss | 8 ++++++-- core/client/app/templates/post-settings-menu.hbs | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/core/client/app/styles/layouts/editor.scss b/core/client/app/styles/layouts/editor.scss index 721dc8d11b..fa6c76cc52 100644 --- a/core/client/app/styles/layouts/editor.scss +++ b/core/client/app/styles/layouts/editor.scss @@ -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; + } } diff --git a/core/client/app/templates/post-settings-menu.hbs b/core/client/app/templates/post-settings-menu.hbs index 3f8ac005db..17f8583113 100644 --- a/core/client/app/templates/post-settings-menu.hbs +++ b/core/client/app/templates/post-settings-menu.hbs @@ -11,11 +11,16 @@
- {{#if model.isDraft}} - - Preview + {{#if model.isPublished}} + + View post + + {{else}} + + Preview {{/if}} + {{gh-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" selectOnClick="true" stopEnterKeyDownPropagation="true"}}