mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
5abeadf80d
Ref #2699 - Introduce ember data dependency - Add loadInitializers and refactor most initializers into one combined - Add Post ember data model - Refactor generateSlug to use title of post and ghostPaths - Refactor post controller to not reference model.property everywhere - Use RESTAdapter for posts, users and tags - Setup author and tag relations in Post model - Fix broken API calls by adding CSRF header - Add initiaizer for csrf value - Use actual User model for current user initializer - Add action for setting featured post, test with actual api call - Fix the sending of UUID's up to the server - Refactor current-user to use ember-data store - If a user is preloaded in the application, use pushPayload to put it in the store - Do a lookup on the store to get an actual User model for injection - Fix posts/post controllerName in route/new.js - Alter signup process to push user into ember data store
21 lines
1.1 KiB
Handlebars
21 lines
1.1 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" this class="post-edit" title="Edit Post"}}
|
|
<span class="hidden">Edit Post</span>
|
|
{{/link-to}}
|
|
<a class="post-settings" title="Post Settings" {{action 'editSettings'}}><span class="hidden">Post Settings</span></a>
|
|
<!-- @TODO use Ghost Popover (#2565) --->
|
|
{{view "post-settings-menu-view"}}
|
|
</section>
|
|
</header>
|