From 8280a6af99eea3dbc02500f6c98dd6b78e0eae75 Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Thu, 31 Mar 2016 12:09:54 -0500 Subject: [PATCH] replace hardcoded AWS image url with static image url --- ghost/admin/app/components/gh-nav-menu.js | 10 +++++++++- ghost/admin/app/templates/components/gh-nav-menu.hbs | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/components/gh-nav-menu.js b/ghost/admin/app/components/gh-nav-menu.js index 038caf698a..2f50d069ac 100644 --- a/ghost/admin/app/components/gh-nav-menu.js +++ b/ghost/admin/app/components/gh-nav-menu.js @@ -2,7 +2,8 @@ import Ember from 'ember'; const { Component, - inject: {service} + inject: {service}, + computed } = Ember; export default Component.extend({ @@ -12,8 +13,15 @@ export default Component.extend({ open: false, + navMenuIcon: computed('ghostPaths.subdir', function () { + let url = `${this.get('ghostPaths.subdir')}/ghost/img/ghosticon.jpg`; + + return Ember.String.htmlSafe(`background-image: url(${url})`); + }), + config: service(), session: service(), + ghostPaths: service(), mouseEnter() { this.sendAction('onMouseEnter'); diff --git a/ghost/admin/app/templates/components/gh-nav-menu.hbs b/ghost/admin/app/templates/components/gh-nav-menu.hbs index 3d7a0da53f..04c0c82944 100644 --- a/ghost/admin/app/templates/components/gh-nav-menu.hbs +++ b/ghost/admin/app/templates/components/gh-nav-menu.hbs @@ -1,5 +1,5 @@ {{#gh-dropdown-button tagName="header" class="gh-nav-menu" dropdownName="user-menu"}} -
+
{{config.blogTitle}}
{{session.user.name}}