display right account name, but only in slug form

This commit is contained in:
Lisa P 2015-08-25 18:00:51 -04:00
parent c0fe47f2c1
commit 33c439a928
2 changed files with 7 additions and 3 deletions

View File

@ -29,6 +29,10 @@ Controller = Ember.Controller.extend
@set('allHooks', hooks)
accountName: (->
@get('allHooks').get('firstObject.ownerName')
).property('allHooks')
hooks: (->
@reloadHooks() unless hooks = @get('allHooks')
@get('allHooks').filter (hook) -> hook.get('admin')
@ -41,11 +45,11 @@ Controller = Ember.Controller.extend
showPrivateReposHint: (->
@config.show_repos_hint == 'private'
) .property()
).property()
showPublicReposHint: (->
@config.show_repos_hint == 'public'
) .property()
).property()
billingUrl: (->
id = if @get('model.type') == 'user' then 'user' else @get('model.login')

View File

@ -22,7 +22,7 @@
{{/if}}
<div class="profile-header">
<h1>{{user.name}}</h1>
<h1>{{accountName}}</h1>
</div>
{{#if user.isSyncing}}