mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
43529c488a
no issue - the index route/controller/template was initially used for a separate loading state within the posts screen layout, this isn't necessary however as the same effect can be achieved with the `posts-loading.hbs` template - this change also lays the groundwork for more complex dropdown-based filters as it enables the filters and query params to live in the same controller+template
29 lines
1.2 KiB
Handlebars
29 lines
1.2 KiB
Handlebars
<section class="gh-canvas">
|
|
<header class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title">Your stories</h2>
|
|
<section class="view-actions">
|
|
{{#link-to "editor.new" class="gh-btn gh-btn-green" data-test-new-post-button=true}}<span>New story</span>{{/link-to}}
|
|
</section>
|
|
</header>
|
|
|
|
<div class="gh-contentfilter">
|
|
{{#active-link}}
|
|
{{link-to "All" "posts.index" (query-params type=null) data-test-all-filter-link=true}}
|
|
{{/active-link}}
|
|
{{#active-link}}
|
|
{{link-to "Drafts" "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}}
|
|
{{/active-link}}
|
|
{{#active-link}}
|
|
{{link-to "Published" "posts.index" (query-params type="published") data-test-published-filter-link=true}}
|
|
{{/active-link}}
|
|
{{#active-link}}
|
|
{{link-to "Scheduled" "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}}
|
|
{{/active-link}}
|
|
{{#active-link}}
|
|
{{link-to "Pages" "posts.index" (query-params type="page") data-test-pages-filter-link=true}}
|
|
{{/active-link}}
|
|
</div>
|
|
|
|
{{gh-loading-spinner}}
|
|
</section>
|