0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/templates/posts/post.hbs

29 lines
1.1 KiB
Handlebars
Raw Normal View History

<header class="post-preview-header clearfix">
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
<h2 class="page-title">Preview</h2>
<button type="button" class="{{if model.featured 'featured' 'unfeatured'}}" title="Feature this post" {{action "toggleFeatured"}}>
<span class="sr-only">Star</span>
2014-08-16 19:40:52 +03:00
</button>
<small class="post-published-by">
<span class="status">
{{#if isPublished}}
<a title="{{model.title}}" href="{{model.url}}">Published</a>
{{else}}
Written
{{/if}}
</span>
2014-08-16 19:40:52 +03:00
<span class="normal">by</span>
<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">
{{#link-to "editor.edit" model class="btn btn-default post-edit"}} Edit{{/link-to}}
2014-08-16 19:40:52 +03:00
</section>
</header>
{{#view "content-preview-content-view" tagName="section"}}
<div class="wrapper">
<h1>{{model.title}}</h1>
{{gh-format-html model.html}}
</div>
{{/view}}