2014-09-15 09:35:15 +00:00
|
|
|
<header class="post-preview-header clearfix">
|
2014-09-15 22:55:37 -06:00
|
|
|
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
|
2014-09-15 09:35:15 +00:00
|
|
|
<h2 class="page-title">Preview</h2>
|
2015-04-01 10:01:38 -06:00
|
|
|
<button type="button" class="{{if model.featured 'featured' 'unfeatured'}}" title="Feature this post" {{action "toggleFeatured"}}>
|
2015-03-08 15:58:51 +00:00
|
|
|
<span class="sr-only">Star</span>
|
2014-08-16 19:40:52 +03:00
|
|
|
</button>
|
2014-09-15 09:35:15 +00:00
|
|
|
<small class="post-published-by">
|
2015-04-02 17:39:47 -06:00
|
|
|
<span class="status">
|
|
|
|
{{#if isPublished}}
|
2015-04-08 15:29:26 -06:00
|
|
|
<a title="{{model.title}}" href="{{model.absoluteUrl}}">Published</a>
|
2015-04-02 17:39:47 -06:00
|
|
|
{{else}}
|
|
|
|
Written
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2014-08-16 19:40:52 +03:00
|
|
|
<span class="normal">by</span>
|
2014-12-29 21:11:24 -05:00
|
|
|
<span class="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
|
2014-08-16 19:40:52 +03:00
|
|
|
</small>
|
|
|
|
<section class="post-controls">
|
2015-04-01 10:01:38 -06:00
|
|
|
{{#link-to "editor.edit" model class="btn btn-default post-edit"}} Edit{{/link-to}}
|
2014-08-16 19:40:52 +03:00
|
|
|
</section>
|
|
|
|
</header>
|
2014-03-02 15:30:35 +01:00
|
|
|
|
2014-06-25 14:39:57 +00:00
|
|
|
{{#view "content-preview-content-view" tagName="section"}}
|
|
|
|
<div class="wrapper">
|
2014-12-29 21:11:24 -05:00
|
|
|
<h1>{{model.title}}</h1>
|
|
|
|
{{gh-format-html model.html}}
|
2014-03-02 15:30:35 +01:00
|
|
|
</div>
|
2014-06-25 14:39:57 +00:00
|
|
|
{{/view}}
|