Merge pull request #5098 from novaugust/view-post-link

Add link to published posts preview on content page
This commit is contained in:
Hannah Wolfe 2015-04-05 14:41:07 +01:00
commit 6db9826b23
2 changed files with 15 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -5,7 +5,13 @@
<span class="sr-only">Star</span>
</button>
<small class="post-published-by">
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
<span class="status">
{{#if isPublished}}
<a {{bind-attr title="model.title" href="model.url"}}>Published</a>
{{else}}
Written
{{/if}}
</span>
<span class="normal">by</span>
<span class="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
</small>