From 2331572978a1654902b91ff796999c9639e9c5e3 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Tue, 5 Aug 2014 12:51:39 +0300 Subject: [PATCH] Adding global app frame wrappers This makes the new responsive styles work in a basic way. It'll probably need revisiting to break out the header area into a partial (maybe?) --- ghost/admin/templates/application.hbs | 9 +++- ghost/admin/templates/editor/edit.hbs | 50 +++++++++-------- ghost/admin/templates/posts.hbs | 77 +++++++++++++++------------ ghost/admin/templates/settings.hbs | 46 ++++++++++------ 4 files changed, 107 insertions(+), 75 deletions(-) diff --git a/ghost/admin/templates/application.hbs b/ghost/admin/templates/application.hbs index a9295d0c15..2ec653339c 100644 --- a/ghost/admin/templates/application.hbs +++ b/ghost/admin/templates/application.hbs @@ -1,11 +1,16 @@ +
+Skip to main content + {{#unless hideNav}} {{partial "navbar"}} {{/unless}} -
+
{{gh-notifications location="top" notify="topNotificationChange"}} {{gh-notifications location="bottom"}} - {{outlet}}
+ {{outlet modal}} + +
\ No newline at end of file diff --git a/ghost/admin/templates/editor/edit.hbs b/ghost/admin/templates/editor/edit.hbs index d8420ef809..1f5be1b2bd 100644 --- a/ghost/admin/templates/editor/edit.hbs +++ b/ghost/admin/templates/editor/edit.hbs @@ -1,27 +1,35 @@ -
-
- {{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=titleScratch tabindex="1" focus=shouldFocusTitle}} -
+ -
-
- Markdown - +
+
+
+ {{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=titleScratch tabindex="1" focus=shouldFocusTitle}} +
-
- {{gh-codemirror value=scratch scrollInfo=view.markdownScrollInfo setCodeMirror="setCodeMirror"}} -
-
-
-
- Preview {{gh-count-words scratch}} -
-
- {{gh-markdown markdown=scratch scrollPosition=view.scrollPosition - uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}} +
+
+ Markdown + +
+
+ {{gh-codemirror value=scratch scrollInfo=view.markdownScrollInfo setCodeMirror="setCodeMirror"}} +
-
-{{partial "publish-bar"}} +
+
+ Preview {{gh-count-words scratch}} +
+
+ {{gh-markdown markdown=scratch scrollPosition=view.scrollPosition + uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}} +
+
+ + {{partial "publish-bar"}} + + diff --git a/ghost/admin/templates/posts.hbs b/ghost/admin/templates/posts.hbs index 92778bb618..c2a5e28956 100644 --- a/ghost/admin/templates/posts.hbs +++ b/ghost/admin/templates/posts.hbs @@ -1,35 +1,42 @@ -
-
-
- All Posts -
- {{#link-to "editor.new" class="button button-add" title="New Post"}}{{/link-to}} -
- {{#view "content-list-content-view" tagName="section"}} -
    - {{#each itemController="posts/post" itemView="post-item-view" itemTagName="li"}} - {{#link-to "posts.post" this class="permalink" title="Edit this post"}} -

    {{title}}

    - - {{/link-to}} - {{/each}} -
- {{/view}} -
-
- {{outlet}} -
+ + +
+
+
+
+ All Posts +
+ {{#link-to "editor.new" class="button button-add" title="New Post"}}{{/link-to}} +
+ {{#view "content-list-content-view" tagName="section"}} +
    + {{#each itemController="posts/post" itemView="post-item-view" itemTagName="li"}} + {{#link-to "posts.post" this class="permalink" title="Edit this post"}} +

    {{title}}

    + + {{/link-to}} + {{/each}} +
+ {{/view}} +
+
+ {{outlet}} +
+
\ No newline at end of file diff --git a/ghost/admin/templates/settings.hbs b/ghost/admin/templates/settings.hbs index f89dce24ff..af54a0e1e8 100644 --- a/ghost/admin/templates/settings.hbs +++ b/ghost/admin/templates/settings.hbs @@ -1,19 +1,31 @@ - - -{{outlet}} + {{outlet}} +