mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
c1cae072f2
Closes #1990, Ref #3810 - Add `js-` prefix to jQuery calls throughout code and templates - move MarkdownComponent classNames to template - Fix back button on posts content preview - Remove dead code for preview tabbing jQuery
22 lines
868 B
Handlebars
22 lines
868 B
Handlebars
<header class="post-preview-header">
|
|
<button type="button" class="btn btn-default btn-back">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}}
|