Ghost/ghost/admin/app/templates/posts.hbs
Kevin Ansfield c16d633d4b New content screen prototype (#503)
refs https://github.com/TryGhost/Ghost/issues/7860

- remove preview pane from content screen
- add basic post status filters
- replace custom infinite scroll with ember-infinity and increase trigger threshold for improved scroll behaviour

Commits:
* basic content list + filter using existing infinite scroll and pagination
* swap our custom pagination + infinite loader for `ember-infinity`
* minor cleanups
* reset scroll position when changing filter
* fix tests
* remove client-side sorting step as we no longer have a live collection
* remove unused `mobile-index-route`
* add acceptance tests for content screen filters
2017-01-25 21:05:28 +01:00

43 lines
1.5 KiB
Handlebars

<section class="gh-view gh-content-view-container">
<header class="view-header">
{{#gh-view-title openMobileMenu="openMobileMenu"}}<span>Content</span>{{/gh-view-title}}
<section class="view-actions">
{{#link-to "editor.new" class="btn btn-green" title="New Post" data-test-new-post-button=true}}
New Post
{{/link-to}}
</section>
</header>
<section class="basic-filter">
<ul>
<li>
{{#link-to "posts.index" (query-params type=null) data-test-all-filter-link=true}}
All
{{/link-to}}
</li>
<li>
{{#link-to "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}}
Drafts
{{/link-to}}
</li>
<li>
{{#link-to "posts.index" (query-params type="published") data-test-published-filter-link=true}}
Published
{{/link-to}}
</li>
<li>
{{#link-to "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}}
Scheduled
{{/link-to}}
</li>
<li>
{{#link-to "posts.index" (query-params type="page") data-test-pages-filter-link=true}}
Pages
{{/link-to}}
</li>
</ul>
</section>
{{outlet}}
</section>