mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Move user/cover image files used in admin team area into the client folder
no issue - fixes potential "mixed content" warnings if non-admin urls are redirected
This commit is contained in:
parent
5ddce6cd0c
commit
7568273957
6 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@ export default Component.extend(ActiveLinkWrapper, {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
authorAvatar: computed('post.author.image', function () {
|
authorAvatar: computed('post.author.image', function () {
|
||||||
return this.get('post.author.image') || this.get('ghostPaths.url').asset('/shared/img/user-image.png');
|
return this.get('post.author.image') || `${this.get('ghostPaths.subdir')}/ghost/img/user-image.png`;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
authorAvatarBackground: computed('authorAvatar', function () {
|
authorAvatarBackground: computed('authorAvatar', function () {
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default Component.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultImage: computed('ghostPaths', function () {
|
defaultImage: computed('ghostPaths', function () {
|
||||||
let url = this.get('ghostPaths.url').asset('/shared/img/user-image.png');
|
let url = `${this.get('ghostPaths.subdir')}/ghost/img/user-image.png`;
|
||||||
return Ember.String.htmlSafe(`background-image: url(${url})`);
|
return Ember.String.htmlSafe(`background-image: url(${url})`);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default Component.extend({
|
||||||
ghostPaths: inject.service('ghost-paths'),
|
ghostPaths: inject.service('ghost-paths'),
|
||||||
|
|
||||||
userDefault: computed('ghostPaths', function () {
|
userDefault: computed('ghostPaths', function () {
|
||||||
return this.get('ghostPaths.url').asset('/shared/img/user-image.png');
|
return `${this.get('ghostPaths.subdir')}/ghost/img/user-image.png`;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
userImageBackground: computed('user.image', 'userDefault', function () {
|
userImageBackground: computed('user.image', 'userDefault', function () {
|
||||||
|
|
|
@ -50,7 +50,7 @@ export default Controller.extend(ValidationEngine, {
|
||||||
|
|
||||||
// duplicated in gh-user-active -- find a better home and consolidate?
|
// duplicated in gh-user-active -- find a better home and consolidate?
|
||||||
userDefault: computed('ghostPaths', function () {
|
userDefault: computed('ghostPaths', function () {
|
||||||
return this.get('ghostPaths.url').asset('/shared/img/user-image.png');
|
return `${this.get('ghostPaths.subdir')}/ghost/img/user-image.png`;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
userImageBackground: computed('user.image', 'userDefault', function () {
|
userImageBackground: computed('user.image', 'userDefault', function () {
|
||||||
|
@ -61,7 +61,7 @@ export default Controller.extend(ValidationEngine, {
|
||||||
// end duplicated
|
// end duplicated
|
||||||
|
|
||||||
coverDefault: computed('ghostPaths', function () {
|
coverDefault: computed('ghostPaths', function () {
|
||||||
return this.get('ghostPaths.url').asset('/shared/img/user-cover.png');
|
return `${this.get('ghostPaths.subdir')}/ghost/img/user-cover.png`;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
coverImageBackground: computed('user.cover', 'coverDefault', function () {
|
coverImageBackground: computed('user.cover', 'coverDefault', function () {
|
||||||
|
|
BIN
ghost/admin/public/assets/img/user-cover.png
Normal file
BIN
ghost/admin/public/assets/img/user-cover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
ghost/admin/public/assets/img/user-image.png
Normal file
BIN
ghost/admin/public/assets/img/user-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
Loading…
Add table
Reference in a new issue