diff --git a/app/models/account.coffee b/app/models/account.coffee index 8f371962..5ace3ea6 100644 --- a/app/models/account.coffee +++ b/app/models/account.coffee @@ -4,6 +4,7 @@ Account = Model.extend name: DS.attr() type: DS.attr() + avatarUrl: DS.attr() reposCount: DS.attr('number') subscribed: DS.attr('boolean') education: DS.attr('boolean') diff --git a/app/templates/profile/accounts.hbs b/app/templates/profile/accounts.hbs index 5496e68c..9038b2ad 100644 --- a/app/templates/profile/accounts.hbs +++ b/app/templates/profile/accounts.hbs @@ -19,7 +19,7 @@ {{#link-to "account" view.account class="name"}}
- +

{{view.name}}

diff --git a/app/views/accounts-list.coffee b/app/views/accounts-list.coffee index 20871935..1a628a46 100644 --- a/app/views/accounts-list.coffee +++ b/app/views/accounts-list.coffee @@ -25,6 +25,10 @@ View = Ember.CollectionView.extend accountUrl(@get('account.login')) ).property('account.login') + avatarUrl: (-> + @get('account.avatarUrl') || "//placehold.it/50x50" + ).property('account.avatarUrl') + click: -> @get('controller').transitionToRoute("account", @get('account.login'))