2016-01-26 01:25:46 +03:00
|
|
|
{{#gh-content-view-container as |previewIsHidden|}}
|
2015-06-03 17:44:12 +03:00
|
|
|
<header class="view-header">
|
2015-08-12 10:17:01 +03:00
|
|
|
{{#gh-view-title openMobileMenu="openMobileMenu"}}<span>Content</span>{{/gh-view-title}}
|
2015-06-03 17:44:12 +03:00
|
|
|
<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">
|
2015-04-01 19:01:38 +03:00
|
|
|
<section class="content-list js-content-list {{if postListFocused 'keyboard-focused'}}">
|
2016-01-26 01:25:46 +03:00
|
|
|
{{#gh-infinite-scroll tagName="section" classNames="content-list-content js-content-scrollbox" fetch="loadNextPage" as |checkScroll|}}
|
2015-06-13 17:34:09 +03:00
|
|
|
<ol class="posts-list">
|
|
|
|
{{#each sortedPosts key="id" as |post|}}
|
2016-11-24 01:30:35 +03:00
|
|
|
{{gh-posts-list-item post=post previewIsHidden=previewIsHidden onDoubleClick="openEditor" onDelete=(action checkScroll)}}
|
2015-06-13 17:34:09 +03:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2016-01-26 01:25:46 +03:00
|
|
|
{{/gh-infinite-scroll}}
|
2014-08-05 13:51:39 +04:00
|
|
|
</section>
|
2015-04-01 19:01:38 +03:00
|
|
|
<section class="content-preview js-content-preview {{if postContentFocused 'keyboard-focused'}}">
|
2014-08-05 13:51:39 +04:00
|
|
|
{{outlet}}
|
|
|
|
</section>
|
2014-09-10 05:22:11 +04:00
|
|
|
</div>
|
2015-08-28 13:52:38 +03:00
|
|
|
{{/gh-content-view-container}}
|
2015-11-18 13:50:48 +03:00
|
|
|
|
|
|
|
{{#if showDeletePostModal}}
|
|
|
|
{{gh-fullscreen-modal "delete-post"
|
|
|
|
model=currentPost
|
|
|
|
close=(action "toggleDeletePostModal")
|
|
|
|
modifier="action wide"}}
|
|
|
|
{{/if}}
|