Content management cleanup

This commit is contained in:
John O'Nolan 2014-08-16 19:40:52 +03:00
parent 137c0129db
commit c4b87bbfeb
5 changed files with 17 additions and 26 deletions

View File

@ -1,22 +0,0 @@
<header class="floatingheader">
<button type="button" class="btn btn-default" href="#">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="post-edit" title="Edit Post"}}
<span class="hidden">Edit Post</span>
{{/link-to}}
{{#gh-popover-button popoverName="post-settings-menu" 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>

View File

@ -1,6 +1,6 @@
<header class="page-header">
<a class="menu-button" href="#"><span class="sr-only">Menu</span></a>
<h2>Editor</h2>
<h2 class="page-title">Editor</h2>
</header>
<div class="page-content">

View File

@ -1,6 +1,6 @@
<header class="page-header">
<a class="menu-button" href="#"><span class="sr-only">Menu</span></a>
<h2>Content</h2>
<h2 class="page-title">Content</h2>
</header>
<div class="page-content">

View File

@ -1,4 +1,17 @@
{{partial "floating-header"}}
<header class="post-preview-header">
<button type="button" class="btn btn-default btn-back" href="#">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">

View File

@ -37,4 +37,4 @@
{{{ghost_script_tags}}}
</body>
</html>
</html>