Ghost/core/client/app/templates/posts/post.hbs
2015-05-22 19:05:16 +01:00

27 lines
1.0 KiB
Handlebars

<header class="post-preview-header clearfix">
<button type="button" class="{{if model.featured 'featured icon-star' 'unfeatured icon-star'}}" title="Feature this post" {{action "toggleFeatured"}}>
<span class="sr-only">Star</span>
</button>
<small class="post-published-by">
<span class="status">
{{#if isPublished}}
<a title="{{model.title}}" href="{{model.absoluteUrl}}">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>
<section class="post-controls">
{{#link-to "editor.edit" model class="btn btn-default post-edit"}}<i class="icon-edit"></i> Edit{{/link-to}}
</section>
</header>
{{#view "content-preview-content-view" tagName="section"}}
<div class="wrapper">
<h1>{{model.title}}</h1>
{{gh-format-html model.html}}
</div>
{{/view}}