diff --git a/app/templates/profile/accounts.hbs b/app/templates/profile/accounts.hbs index b31d60a3..cb270984 100644 --- a/app/templates/profile/accounts.hbs +++ b/app/templates/profile/accounts.hbs @@ -14,6 +14,10 @@

Organizations

{{#collection "accounts-list" contentBinding="controller"}} + + {{#if view.account.type == user}} + hello user + {{/if}} {{#link-to "account" view.account class="name"}}
diff --git a/app/views/accounts-list.coffee b/app/views/accounts-list.coffee index 20871935..1440a5f2 100644 --- a/app/views/accounts-list.coffee +++ b/app/views/accounts-list.coffee @@ -21,6 +21,10 @@ View = Ember.CollectionView.extend @get('content.name') || @get('content.login') ).property('content.login', 'content.name') + isUser: (-> + @get('content.type') + ).property('content.type') + urlAccount: (-> accountUrl(@get('account.login')) ).property('account.login')