mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
- [x] Mobilemenu button is missing from `content` and `editor` views - [x] Mobilemenu pane slides entire content over, should expand over-top-of-content - [x] Mobilemenu can't be closed - [x] gh-view-title no longer generates an extra div; it is the h2. - [x] gh-autonav-toggle closes the mobile menu on mobile. renamed `gh-menu-toggle` - [ ] There is weird behaviour with mobile menu when changing from big=>small=>big viewport sizes - ~~[ ] (Future issue) Ghost should remember (localstorage?) whether desktop menu is expanded or collapsed~~
42 lines
2.1 KiB
Handlebars
42 lines
2.1 KiB
Handlebars
<header class="view-header">
|
|
{{#gh-view-title openMobileMenu="openMobileMenu"}}Content{{/gh-view-title}}
|
|
<section class="view-actions">
|
|
{{#link-to "editor.new" class="btn btn-green" title="New Post"}}New Post{{/link-to}}
|
|
</section>
|
|
</header>
|
|
|
|
<div class="view-container">
|
|
<section class="content-list js-content-list {{if postListFocused 'keyboard-focused'}}">
|
|
{{#view "paginated-scroll-box" tagName="section" classNames="content-list-content js-content-scrollbox"}}
|
|
<ol class="posts-list">
|
|
{{#each controller itemController="posts/post" itemView="post-item-view" itemTagName="li" as |post|}}
|
|
{{#link-to "posts.post" post.model class="permalink" alternateActive=view.active title="Edit this post"}}
|
|
<h3 class="entry-title">{{post.model.title}}</h3>
|
|
<section class="entry-meta">
|
|
<span class="avatar" style={{post.authorAvatarBackground}}>
|
|
<img src="{{post.authorAvatar}}" title="{{post.authorName}}">
|
|
</span>
|
|
<span class="author">{{post.authorName}}</span>
|
|
<span class="status">
|
|
{{#if post.isPublished}}
|
|
{{#if post.model.page}}
|
|
<span class="page">Page</span>
|
|
{{else}}
|
|
<time datetime="{{post.model.published_at}}" class="date published">
|
|
Published {{gh-format-timeago post.model.published_at}}
|
|
</time>
|
|
{{/if}}
|
|
{{else}}
|
|
<span class="draft">Draft</span>
|
|
{{/if}}
|
|
</span>
|
|
</section>
|
|
{{/link-to}}
|
|
{{/each}}
|
|
</ol>
|
|
{{/view}}
|
|
</section>
|
|
<section class="content-preview js-content-preview {{if postContentFocused 'keyboard-focused'}}">
|
|
{{outlet}}
|
|
</section>
|
|
</div>
|