display right account name, but only in slug form
This commit is contained in:
parent
c0fe47f2c1
commit
33c439a928
|
@ -29,6 +29,10 @@ Controller = Ember.Controller.extend
|
||||||
|
|
||||||
@set('allHooks', hooks)
|
@set('allHooks', hooks)
|
||||||
|
|
||||||
|
accountName: (->
|
||||||
|
@get('allHooks').get('firstObject.ownerName')
|
||||||
|
).property('allHooks')
|
||||||
|
|
||||||
hooks: (->
|
hooks: (->
|
||||||
@reloadHooks() unless hooks = @get('allHooks')
|
@reloadHooks() unless hooks = @get('allHooks')
|
||||||
@get('allHooks').filter (hook) -> hook.get('admin')
|
@get('allHooks').filter (hook) -> hook.get('admin')
|
||||||
|
@ -41,11 +45,11 @@ Controller = Ember.Controller.extend
|
||||||
|
|
||||||
showPrivateReposHint: (->
|
showPrivateReposHint: (->
|
||||||
@config.show_repos_hint == 'private'
|
@config.show_repos_hint == 'private'
|
||||||
) .property()
|
).property()
|
||||||
|
|
||||||
showPublicReposHint: (->
|
showPublicReposHint: (->
|
||||||
@config.show_repos_hint == 'public'
|
@config.show_repos_hint == 'public'
|
||||||
) .property()
|
).property()
|
||||||
|
|
||||||
billingUrl: (->
|
billingUrl: (->
|
||||||
id = if @get('model.type') == 'user' then 'user' else @get('model.login')
|
id = if @get('model.type') == 'user' then 'user' else @get('model.login')
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="profile-header">
|
<div class="profile-header">
|
||||||
<h1>{{user.name}}</h1>
|
<h1>{{accountName}}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if user.isSyncing}}
|
{{#if user.isSyncing}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user