mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
aa54821e64
- Moved `new` route into `editor` resource (`editor.new`) - Moved the current editor controller, view, and route to `editor.edit` - Added `editor.index`, which automatically transitions into `editor.new` - Moved controllers, views, templates, and routes to match new router config. Also changed links to `editor` into `editor.new` and `editor.edit` as appropriate.
25 lines
1.2 KiB
Handlebars
25 lines
1.2 KiB
Handlebars
<header class="floatingheader">
|
|
<button class="button-back" href="#">Back</button>
|
|
{{!-- @TODO: add back title updates depending on featured state --}}
|
|
<a {{bind-attr class="featured:featured:unfeatured"}} href="#" title="Feature this post" {{action "toggleFeatured"}}>
|
|
<span class="hidden">Star</span>
|
|
</a>
|
|
<small>
|
|
{{!-- @TODO: the if published doesn't seem to work, needs to be fixed --}}
|
|
<span class="status">{{#if published}}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="post-edit" title="Edit Post"}}
|
|
<span class="hidden">Edit Post</span>
|
|
{{/link-to}}
|
|
{{#gh-popover-button popoverName="post-settings-menu" tagName="a" classNames="post-settings" title="Post Settings"}}
|
|
<span class="hidden">Post Settings</span>
|
|
{{/gh-popover-button}}
|
|
{{#gh-popover name="post-settings-menu" classNames="post-settings-menu menu-drop-right"}}
|
|
{{render "post-settings-menu" model}}
|
|
{{/gh-popover}}
|
|
</section>
|
|
</header>
|