diff --git a/ghost/admin/Gruntfile.js b/ghost/admin/Gruntfile.js index e6b31459b8..3d1fea698d 100644 --- a/ghost/admin/Gruntfile.js +++ b/ghost/admin/Gruntfile.js @@ -216,7 +216,7 @@ module.exports = function(grunt) { ).then(function (results) { var contributors = mergeContribs(results[1], results[2]), contributorTemplate = '
\n \n' + - ' " alt="<%= name %>" />\n' + + ' " alt="<%= name %>" />\n' + ' \n
', downloadImagePromise = function (url, name) { diff --git a/ghost/admin/app/components/gh-cm-editor.js b/ghost/admin/app/components/gh-cm-editor.js index 27ee9ba24d..500eee86db 100644 --- a/ghost/admin/app/components/gh-cm-editor.js +++ b/ghost/admin/app/components/gh-cm-editor.js @@ -25,9 +25,9 @@ const CmEditorComponent = Component.extend(InvokeActionMixin, { didInsertElement() { this._super(...arguments); - this.get('lazyLoader').loadStyle('codemirror', 'codemirror/codemirror.css'); + this.get('lazyLoader').loadStyle('codemirror', 'assets/codemirror/codemirror.css'); - this.get('lazyLoader').loadScript('codemirror', 'codemirror/codemirror.js').then(() => { + this.get('lazyLoader').loadScript('codemirror', 'assets/codemirror/codemirror.js').then(() => { scheduleOnce('afterRender', this, function () { this._initCodeMirror(); }); diff --git a/ghost/admin/app/helpers/gh-path.js b/ghost/admin/app/helpers/gh-path.js index 0a99091a68..31a701070a 100644 --- a/ghost/admin/app/helpers/gh-path.js +++ b/ghost/admin/app/helpers/gh-path.js @@ -7,7 +7,7 @@ import ghostPaths from 'ghost-admin/utils/ghost-paths'; // {{gh-path}} or {{gh-path 'blog'}} for Ghost's root (/myblog/) // {{gh-path 'admin'}} for Ghost's admin root (/myblog/ghost/) // {{gh-path 'api'}} for Ghost's api root (/myblog/ghost/api/v0.1/) -// {{gh-path 'admin' '/assets/hi.png'}} for resolved url (/myblog/ghost/assets/hi.png) +// {{gh-path 'asset' '/img/hi.png'}} for resolved url (/myblog/ghost/assets/img/hi.png) export default helper(function (params) { let paths = ghostPaths(); @@ -18,7 +18,7 @@ export default helper(function (params) { path = 'blog'; } - if (!/^(blog|admin|api)$/.test(path)) { + if (!/^(blog|admin|asset|api)$/.test(path)) { url = path; path = 'blog'; } @@ -30,6 +30,9 @@ export default helper(function (params) { case 'admin': base = paths.adminRoot; break; + case 'asset': + base = paths.assetRoot; + break; case 'api': base = paths.apiRoot; break; diff --git a/ghost/admin/app/templates/about.hbs b/ghost/admin/app/templates/about.hbs index 20d95b2250..e00482f967 100644 --- a/ghost/admin/app/templates/about.hbs +++ b/ghost/admin/app/templates/about.hbs @@ -4,7 +4,7 @@
- +
{{gh-upgrade-notification}} diff --git a/ghost/admin/app/templates/error.hbs b/ghost/admin/app/templates/error.hbs index 20b16f46c0..0fd7c65909 100644 --- a/ghost/admin/app/templates/error.hbs +++ b/ghost/admin/app/templates/error.hbs @@ -1,7 +1,7 @@
- +

{{code}}

{{message}}

diff --git a/ghost/admin/app/templates/settings/apps/index.hbs b/ghost/admin/app/templates/settings/apps/index.hbs index 065beb3445..49c757c355 100644 --- a/ghost/admin/app/templates/settings/apps/index.hbs +++ b/ghost/admin/app/templates/settings/apps/index.hbs @@ -10,7 +10,7 @@ {{#link-to "settings.apps.slack" id="slack-link"}}
-
+

Slack

A team communication tool

diff --git a/ghost/admin/app/templates/settings/apps/slack.hbs b/ghost/admin/app/templates/settings/apps/slack.hbs index 8bd557e6f9..892788451c 100644 --- a/ghost/admin/app/templates/settings/apps/slack.hbs +++ b/ghost/admin/app/templates/settings/apps/slack.hbs @@ -10,7 +10,7 @@
- +

Slack

diff --git a/ghost/admin/app/templates/setup/one.hbs b/ghost/admin/app/templates/setup/one.hbs index 9081de39ca..bf932c3e2a 100644 --- a/ghost/admin/app/templates/setup/one.hbs +++ b/ghost/admin/app/templates/setup/one.hbs @@ -4,7 +4,7 @@
- Ghost screenshot + Ghost screenshot
{{#link-to "setup.two" classNames="btn btn-green btn-lg"}} diff --git a/ghost/admin/app/templates/setup/three.hbs b/ghost/admin/app/templates/setup/three.hbs index 9e541955ed..192ee8a3ad 100644 --- a/ghost/admin/app/templates/setup/three.hbs +++ b/ghost/admin/app/templates/setup/three.hbs @@ -3,7 +3,7 @@

Ghost works best when shared with others. Collaborate, get feedback on your posts & work together on ideas.

-
+
{{#gh-form-group errors=errors hasValidated=hasValidated property="users"}} diff --git a/ghost/admin/app/utils/ghost-paths.js b/ghost/admin/app/utils/ghost-paths.js index bb749dd909..9796422def 100644 --- a/ghost/admin/app/utils/ghost-paths.js +++ b/ghost/admin/app/utils/ghost-paths.js @@ -17,6 +17,7 @@ export default function () { let path = window.location.pathname; let subdir = path.substr(0, path.search('/ghost/')); let adminRoot = `${subdir}/ghost/`; + let assetRoot = `${subdir}/ghost/assets/`; let apiRoot = `${subdir}/ghost/api/v0.1`; function assetUrl(src) { @@ -25,6 +26,7 @@ export default function () { return { adminRoot, + assetRoot, apiRoot, subdir, blogRoot: `${subdir}/`, diff --git a/ghost/admin/ember-cli-build.js b/ghost/admin/ember-cli-build.js index d4ba37f027..c945b4e0f6 100644 --- a/ghost/admin/ember-cli-build.js +++ b/ghost/admin/ember-cli-build.js @@ -42,7 +42,8 @@ codemirrorAssets = function () { var jsTree = concat(tree, { outputFile: 'assets/codemirror/codemirror.js', headerFiles: ['lib/codemirror.js'], - inputFiles: ['mode/**/*'] + inputFiles: ['mode/**/*'], + sourceMapConfig: {enabled: false} }); var cssTree = concat(tree, {