mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
c4d7acf893
closes #4031 - Adds css to show back button, edit button in header nav on mobile
23 lines
961 B
Handlebars
23 lines
961 B
Handlebars
<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" {{bind-attr class="featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
|
|
<span class="hidden">Star</span>
|
|
</button>
|
|
<small class="post-published-by">
|
|
<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}}
|