2014-03-02 18:30:35 +04:00
|
|
|
<header class="floatingheader">
|
|
|
|
<button class="button-back" href="#">Back</button>
|
2014-03-10 07:44:08 +04:00
|
|
|
{{!-- @TODO: add back title updates depending on featured state --}}
|
2014-05-09 09:00:10 +04:00
|
|
|
<a {{bind-attr class="featured:featured:unfeatured"}} href="#" title="Feature this post" {{action "toggleFeatured"}}>
|
2014-03-02 18:30:35 +04:00
|
|
|
<span class="hidden">Star</span>
|
|
|
|
</a>
|
|
|
|
<small>
|
2014-03-10 07:44:08 +04:00
|
|
|
{{!-- @TODO: the if published doesn't seem to work, needs to be fixed --}}
|
|
|
|
<span class="status">{{#if published}}Published{{else}}Written{{/if}}</span>
|
2014-03-02 18:30:35 +04:00
|
|
|
<span class="normal">by</span>
|
2014-03-10 07:44:08 +04:00
|
|
|
<span class="author">{{#if author.name}}{{author.name}}{{else}}{{author.email}}{{/if}}</span>
|
2014-03-02 18:30:35 +04:00
|
|
|
</small>
|
|
|
|
<section class="post-controls">
|
2014-03-04 00:18:10 +04:00
|
|
|
{{#link-to "editor" this class="post-edit" title="Edit Post"}}
|
|
|
|
<span class="hidden">Edit Post</span>
|
|
|
|
{{/link-to}}
|
2014-05-31 04:07:15 +04:00
|
|
|
{{#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"}}
|
2014-06-08 10:02:21 +04:00
|
|
|
{{render "post-settings-menu" model}}
|
2014-05-31 04:07:15 +04:00
|
|
|
{{/gh-popover}}
|
2014-03-02 18:30:35 +04:00
|
|
|
</section>
|
2014-04-20 18:48:34 +04:00
|
|
|
</header>
|