{{#gh-content-view-container as |previewIsHidden|}}
{{#gh-view-title openMobileMenu="openMobileMenu"}}Content{{/gh-view-title}}
{{#link-to "editor.new" class="btn btn-green" title="New Post"}}New Post{{/link-to}}
{{#gh-infinite-scroll tagName="section" classNames="content-list-content js-content-scrollbox" fetch="loadNextPage" as |checkScroll|}}
    {{#each sortedPosts key="id" as |post|}} {{#gh-posts-list-item post=post onDoubleClick="openEditor" onDelete=(action checkScroll) as |component|}} {{#link-to (if previewIsHidden 'editor.edit' 'posts.post') post.id class="permalink" title="Edit this post"}}

    {{post.title}}

    {{/link-to}} {{/gh-posts-list-item}} {{/each}}
{{/gh-infinite-scroll}}
{{outlet}}
{{/gh-content-view-container}} {{#if showDeletePostModal}} {{gh-fullscreen-modal "delete-post" model=currentPost close=(action "toggleDeletePostModal") modifier="action wide"}} {{/if}}