2014-09-15 13:35:15 +04:00
|
|
|
<header class="post-preview-header clearfix">
|
2014-09-16 08:55:37 +04:00
|
|
|
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
|
2014-09-15 13:35:15 +04:00
|
|
|
<h2 class="page-title">Preview</h2>
|
2014-08-16 20:40:52 +04:00
|
|
|
<button type="button" {{bind-attr class="featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
|
|
|
|
<span class="hidden">Star</span>
|
|
|
|
</button>
|
2014-09-15 13:35:15 +04:00
|
|
|
<small class="post-published-by">
|
2014-08-16 20:40:52 +04:00
|
|
|
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
|
|
|
|
<span class="normal">by</span>
|
|
|
|
<span class="author">{{#if author.name}}{{author.name}}{{else}}{{author.email}}{{/if}}</span>
|
|
|
|
</small>
|
|
|
|
<section class="post-controls">
|
|
|
|
{{#link-to "editor.edit" this class="btn btn-default post-edit"}} Edit{{/link-to}}
|
|
|
|
</section>
|
|
|
|
</header>
|
2014-03-02 18:30:35 +04:00
|
|
|
|
2014-06-25 18:39:57 +04:00
|
|
|
{{#view "content-preview-content-view" tagName="section"}}
|
|
|
|
<div class="wrapper">
|
2014-07-25 14:42:42 +04:00
|
|
|
<h1>{{title}}</h1>
|
|
|
|
{{gh-format-html html}}
|
2014-03-02 18:30:35 +04:00
|
|
|
</div>
|
2014-06-25 18:39:57 +04:00
|
|
|
{{/view}}
|