fix flickering filter menu on content screen

This commit is contained in:
Kevin Ansfield 2017-02-01 19:49:58 +00:00 committed by Austin Burdine
parent a75f6f8579
commit 29a42678f0
2 changed files with 29 additions and 21 deletions

View File

@ -1,12 +1,32 @@
<section class="gh-view">
<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"}}New Post{{/link-to}}
{{link-to "New Post" "editor.new" class="btn btn-green" title="New Post"}}
</section>
</header>
<section class="basic-filter">
<ul>
<li>
{{link-to "All" "posts.index" (query-params type=null) data-test-all-filter-link=true}}
</li>
<li>
{{link-to "Drafts" "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}}
</li>
<li>
{{link-to "Published" "posts.index" (query-params type="published") data-test-published-filter-link=true}}
</li>
<li>
{{link-to "Scheduled" "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}}
</li>
<li>
{{link-to "Pages" "posts.index" (query-params type="page") data-test-pages-filter-link=true}}
</li>
</ul>
</section>
<div class="view-container">
{{gh-loading-spinner}}
</div>
</section>
</section>

View File

@ -2,38 +2,26 @@
<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}}
{{link-to "New Post" "editor.new" class="btn btn-green" title="New Post" data-test-new-post-button=true}}
</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}}
{{link-to "All" "posts.index" (query-params type=null) data-test-all-filter-link=true}}
</li>
<li>
{{#link-to "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}}
Drafts
{{/link-to}}
{{link-to "Drafts" "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}}
</li>
<li>
{{#link-to "posts.index" (query-params type="published") data-test-published-filter-link=true}}
Published
{{/link-to}}
{{link-to "Published" "posts.index" (query-params type="published") data-test-published-filter-link=true}}
</li>
<li>
{{#link-to "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}}
Scheduled
{{/link-to}}
{{link-to "Scheduled" "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}}
</li>
<li>
{{#link-to "posts.index" (query-params type="page") data-test-pages-filter-link=true}}
Pages
{{/link-to}}
{{link-to "Pages" "posts.index" (query-params type="page") data-test-pages-filter-link=true}}
</li>
</ul>
</section>