From 29a42678f02a5570a5aa79ac7d03da0c925ac3d8 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 1 Feb 2017 19:49:58 +0000 Subject: [PATCH] fix flickering filter menu on content screen --- ghost/admin/app/templates/posts-loading.hbs | 26 ++++++++++++++++++--- ghost/admin/app/templates/posts.hbs | 24 +++++-------------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/ghost/admin/app/templates/posts-loading.hbs b/ghost/admin/app/templates/posts-loading.hbs index 05aa2e07f6..7105c42af6 100644 --- a/ghost/admin/app/templates/posts-loading.hbs +++ b/ghost/admin/app/templates/posts-loading.hbs @@ -1,12 +1,32 @@ -
+
{{#gh-view-title openMobileMenu="openMobileMenu"}}Content{{/gh-view-title}}
- {{#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"}}
+
+
    +
  • + {{link-to "All" "posts.index" (query-params type=null) data-test-all-filter-link=true}} +
  • +
  • + {{link-to "Drafts" "posts.index" (query-params type="draft") data-test-drafts-filter-link=true}} +
  • +
  • + {{link-to "Published" "posts.index" (query-params type="published") data-test-published-filter-link=true}} +
  • +
  • + {{link-to "Scheduled" "posts.index" (query-params type="scheduled") data-test-scheduled-filter-link=true}} +
  • +
  • + {{link-to "Pages" "posts.index" (query-params type="page") data-test-pages-filter-link=true}} +
  • +
+
+
{{gh-loading-spinner}}
-
\ No newline at end of file +
diff --git a/ghost/admin/app/templates/posts.hbs b/ghost/admin/app/templates/posts.hbs index 74b673a5e1..55d7099906 100644 --- a/ghost/admin/app/templates/posts.hbs +++ b/ghost/admin/app/templates/posts.hbs @@ -2,38 +2,26 @@
{{#gh-view-title openMobileMenu="openMobileMenu"}}Content{{/gh-view-title}}
- {{#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}}