From 27ce297b3246eb6c6eb89e07a2e2018862d72ef3 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Sun, 19 May 2013 09:04:20 +0100 Subject: [PATCH] closes #43 - admin cleanup Getting the admin views into a more consistent / happy state --- core/admin/views/blog.hbs | 90 +++--- core/admin/views/dashboard.hbs | 299 ++++---------------- core/admin/views/debug.hbs | 67 +++-- core/admin/views/default.hbs | 24 +- core/admin/views/editor.hbs | 89 +++--- core/admin/views/partials/flashes.hbs | 1 - core/admin/views/partials/navbar.hbs | 2 +- core/admin/views/settings.hbs | 381 +++++++++++++------------- 8 files changed, 381 insertions(+), 572 deletions(-) diff --git a/core/admin/views/blog.hbs b/core/admin/views/blog.hbs index f0aa9bbe0e..730984d3b8 100644 --- a/core/admin/views/blog.hbs +++ b/core/admin/views/blog.hbs @@ -1,61 +1,59 @@ -{{!< default}} -
+{{#contentFor 'bodyScripts'}} + +{{/contentFor}} -
-
+{{!< default}} +
+
- All Posts - + All Posts +
-
-
+
+
    - {{#each posts}} - {{! #if featured class="featured"{{/if}} -
  1. - -
  2. - {{/each}} + {{#each posts}} + {{! #if featured class="featured"{{/if}} +
  3. + +
  4. + {{/each}}
-
+ -
-
+
+
- - {{! TODO: JavaScript toggle featured/unfeatured}} + + {{! TODO: JavaScript toggle featured/unfeatured}} - Published - by - John O'Nolan -
+ Published + by + John O'Nolan +
-
-
-
-
-
- -
- - + +
+
+
+ \ No newline at end of file diff --git a/core/admin/views/dashboard.hbs b/core/admin/views/dashboard.hbs index ddead19500..71cf077760 100644 --- a/core/admin/views/dashboard.hbs +++ b/core/admin/views/dashboard.hbs @@ -1,254 +1,63 @@ -{{!< default}} -
+{{#contentFor 'bodyScripts'}} + + +{{/contentFor}} + +{{!< default}}
-
- -
    -
  • 9 Ready
  • -
  • 4 Pending
  • -
  • 1 Draft
  • -
-
+
+ +
    +
  • 9 Ready
  • +
  • 4 Pending
  • +
  • 1 Draft
  • +
+
-
- -{{! -
-
Welcome back, John.
- - -
-
- -
-
- London, United Kingdom -
-
-
- 8:55am -
-
- Wednesday - 13 June 2012 -
-
-
- Timezone: UTC +1 -
-
- -
-
- Top Authors This Month -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NamePostsCommentstweetsLikes
John32 Posts231 Comments103 tweets
James32 Posts231 Comments103 tweets
Jerry32 Posts231 Comments103 tweets
-
-
- Ghost Stats -
-
- -
-
- Post Statuses -
-
-
-
Scheduled
-
Pending
-
Draft
-
-
-
5 Scheduled
-
12 Pending
-
32 Draft
-
-
-
- Ghost Stats -
-
- -
-
- Total Page Views (Last 30 Days) -
-
-
- 37,921 - - Previous 32,419 / +15.4% - -
-
-
- Google Analytics -
-
- -
-
- Live Visitors -
-
-
- 124 - - 391 max this month - -
-
-
- Woopra -
-
- -
-
- Twitter Followers -
-
-
- 12,304 - - +123 this month - -
-
-
- @ghost -
-
- -
-
- Today’s Traffic (Actions) -
-
- -
-
- Woopra -
-
- -
-
- Total Likes -
-
-
- 6,931 - - -23 this month - -
-
-
- Facebook -
-
- }} - -
- - - \ No newline at end of file +
\ No newline at end of file diff --git a/core/admin/views/debug.hbs b/core/admin/views/debug.hbs index 080e463821..9369090278 100644 --- a/core/admin/views/debug.hbs +++ b/core/admin/views/debug.hbs @@ -1,41 +1,38 @@ {{!< default}} -
- -
+
-
-

General

- -
-
- {{> flashes}} -
-
- - -
+
+

General

+ +
+
+ {{> flashes}} + +
+ + +
- -
+ +
-
- -
+ \ No newline at end of file diff --git a/core/admin/views/default.hbs b/core/admin/views/default.hbs index 23c133b076..5c82cbf8f0 100644 --- a/core/admin/views/default.hbs +++ b/core/admin/views/default.hbs @@ -2,6 +2,7 @@ + @@ -14,26 +15,31 @@ - - - - - + - + + + {{{block "pageStyles"}}} - + - + {{{block "headScripts"}}} {{> navbar}} - {{{body}}} + +
+ {{> flashes}} + + {{{body}}} +
+ + {{{block "bodyScripts"}}} \ No newline at end of file diff --git a/core/admin/views/editor.hbs b/core/admin/views/editor.hbs index 9722065128..0b972c6b01 100644 --- a/core/admin/views/editor.hbs +++ b/core/admin/views/editor.hbs @@ -1,65 +1,66 @@ +{{#contentFor 'bodyScripts'}} + + + + + + + +{{/contentFor}} + {{!< default}} -
{{! TODO: Add "scrolling" class only when one of the panels is scrolled down by 5px or more }} - -
+
- +
-
+
-
+
- {{e "editor.headers.markdown.label" "Markdown"}} - + {{e "editor.headers.markdown.label" "Markdown"}} +
- +
-
{{!.entry-markdown}} +
{{!.entry-markdown}} -
+
- Preview 0 words + Preview 0 words
-
- {{!The content gets inserted in here, bitches!}} -
+
+ {{!The content gets inserted in here, bitches!}} +
-
{{!.entry-preview}} +
{{!.entry-preview}} -
- - - - - - - - + \ No newline at end of file diff --git a/core/admin/views/partials/flashes.hbs b/core/admin/views/partials/flashes.hbs index 74708c21a1..460bed84ed 100644 --- a/core/admin/views/partials/flashes.hbs +++ b/core/admin/views/partials/flashes.hbs @@ -1,4 +1,3 @@ -
{{#if messages}} {{#each messages.error}}
diff --git a/core/admin/views/partials/navbar.hbs b/core/admin/views/partials/navbar.hbs index f4543d6247..cd73c2313b 100644 --- a/core/admin/views/partials/navbar.hbs +++ b/core/admin/views/partials/navbar.hbs @@ -3,7 +3,7 @@