mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
9cff617899
Closes #3940 - Pushing left/right changes the "focus" of the posts screen to the list / content, respectively - Once one of these has been focused, up/down keyboards work on that section in particular - By default, the post list is selected - Using the keyboard to focus one of the two makes it go "poof" to let you know you changed stuff
43 lines
1.8 KiB
Handlebars
43 lines
1.8 KiB
Handlebars
<header class="page-header">
|
|
<button class="menu-button js-menu-button" {{action "toggleGlobalMobileNav"}}><span class="sr-only">Menu</span></button>
|
|
<h2 class="page-title">Content</h2>
|
|
</header>
|
|
|
|
<div class="page-content">
|
|
<section {{bind-attr class=":content-list :js-content-list postListFocused:keyboard-focused"}}>
|
|
<header class="floatingheader">
|
|
<section class="content-filter">
|
|
<small>All Posts</small>
|
|
</section>
|
|
{{#link-to "editor.new" class="btn btn-green" title="New Post"}}<span class="hidden">New Post</span>{{/link-to}}
|
|
</header>
|
|
{{#view "paginated-scroll-box" tagName="section" classNames="content-list-content"}}
|
|
<ol class="posts-list">
|
|
{{#each itemController="posts/post" itemView="post-item-view" itemTagName="li"}}
|
|
{{#link-to "posts.post" this class="permalink" title="Edit this post"}}
|
|
<h3 class="entry-title">{{title}}</h3>
|
|
<section class="entry-meta">
|
|
<span class="status">
|
|
{{#if isPublished}}
|
|
{{#if page}}
|
|
<span class="page">Page</span>
|
|
{{else}}
|
|
<time datetime="{{unbound published_at}}" class="date published">
|
|
Published {{gh-format-timeago published_at}}
|
|
</time>
|
|
{{/if}}
|
|
{{else}}
|
|
<span class="draft">Draft</span>
|
|
{{/if}}
|
|
</span>
|
|
</section>
|
|
{{/link-to}}
|
|
{{/each}}
|
|
</ol>
|
|
{{/view}}
|
|
</section>
|
|
<section {{bind-attr class=":content-preview :js-content-preview postContentFocused:keyboard-focused"}}>
|
|
{{outlet}}
|
|
</section>
|
|
</div>
|