Ghost/ghost/admin/templates/posts/post.hbs
Matt Enlow ab7951ea16 Emberify Posts mobile transitions
Closes #3950

- Fixed up event attachment and removal in a few mixins
- Renamed content-list-content-view to something more understandable
- simplify transition from posts.index to posts.post
2014-09-10 20:58:10 -06:00

22 lines
897 B
Handlebars

<header class="post-preview-header">
<button type="button" class="btn btn-default btn-back" {{action "hidePostContent"}}>Back</button>
<button type="button" {{bind-attr class="featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
<span class="hidden">Star</span>
</button>
<small>
<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>
{{#view "content-preview-content-view" tagName="section"}}
<div class="wrapper">
<h1>{{title}}</h1>
{{gh-format-html html}}
</div>
{{/view}}