From 91124646edb9df1f5ef94e7bd7d3a81961735758 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Thu, 2 Apr 2015 17:39:47 -0600 Subject: [PATCH] Add link to published posts preview on content page Ref #1756 - the word "Published" in "Published by {{author}}" now links to the post's front page --- core/client/app/styles/layouts/content.scss | 9 ++++++++- core/client/app/templates/posts/post.hbs | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/core/client/app/styles/layouts/content.scss b/core/client/app/styles/layouts/content.scss index 59f4815f22..c81029eefa 100644 --- a/core/client/app/styles/layouts/content.scss +++ b/core/client/app/styles/layouts/content.scss @@ -258,6 +258,13 @@ padding: 3px; } + .post-published-by .status a { + color: inherit; + &:hover { + text-decoration: underline; + } + } + .normal { text-transform: none; margin: 0 3px; @@ -427,4 +434,4 @@ .content-preview.keyboard-focused { animation: keyboard-focus-style-fade-out 1.5s 1 forwards; -} \ No newline at end of file +} diff --git a/core/client/app/templates/posts/post.hbs b/core/client/app/templates/posts/post.hbs index 2e358ceea3..35b7cc2819 100644 --- a/core/client/app/templates/posts/post.hbs +++ b/core/client/app/templates/posts/post.hbs @@ -5,7 +5,13 @@ Star - {{#if isPublished}}Published{{else}}Written{{/if}} + + {{#if isPublished}} + Published + {{else}} + Written + {{/if}} + by {{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}