diff --git a/app/assets/javascripts/discourse/controllers/user.js.es6 b/app/assets/javascripts/discourse/controllers/user.js.es6 index 3d367afe40b..95a89bc7220 100644 --- a/app/assets/javascripts/discourse/controllers/user.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user.js.es6 @@ -15,6 +15,11 @@ export default Ember.Controller.extend(CanCheckEmails, { return username === User.currentProp('username'); }, + @computed('model.profileBackground') + hasProfileBackground(background) { + return !Ember.isEmpty(background.toString()); + }, + @computed('indexStream', 'viewingSelf', 'forceExpand') collapsedInfo(indexStream, viewingSelf, forceExpand){ return (!indexStream || viewingSelf) && !forceExpand; diff --git a/app/assets/javascripts/discourse/templates/user.hbs b/app/assets/javascripts/discourse/templates/user.hbs index fc6fee572bd..1d890517e24 100644 --- a/app/assets/javascripts/discourse/templates/user.hbs +++ b/app/assets/javascripts/discourse/templates/user.hbs @@ -1,6 +1,7 @@