Merge pull request #393 from travis-ci/fix-account-header-name
Fix account header name
This commit is contained in:
commit
7dc3a66383
|
@ -29,6 +29,10 @@ Controller = Ember.Controller.extend
|
||||||
|
|
||||||
@set('allHooks', hooks)
|
@set('allHooks', hooks)
|
||||||
|
|
||||||
|
accountName: (->
|
||||||
|
@get('model.name') || @get('model.login')
|
||||||
|
).property('model.name', 'model.login')
|
||||||
|
|
||||||
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}}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<h1>Settings: {{slug}}</h1>
|
|
||||||
|
|
||||||
{{outlet}}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{{!-- <article class="profile-main">
|
|
||||||
{{outlet}}
|
|
||||||
</article>
|
|
||||||
--}}
|
|
|
@ -1,21 +0,0 @@
|
||||||
<ul class="tabs">
|
|
||||||
<li id="tab_hooks" class={{view.classHooks}}>
|
|
||||||
<h5>
|
|
||||||
{{#link-to "account" account}}Repositories{{/link-to}}
|
|
||||||
</h5>
|
|
||||||
</li>
|
|
||||||
{{#if view.displayUser}}
|
|
||||||
<li id="tab_user" class={{view.classUser}}>
|
|
||||||
<h5>
|
|
||||||
{{#link-to "accounts.info"}}Profile{{/link-to}}
|
|
||||||
</h5>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
{{#if config.billingEndpoint}}
|
|
||||||
<li id="tab_billing" class="right">
|
|
||||||
<h5>
|
|
||||||
<a href={{billingUrl}}>Billing</a>
|
|
||||||
</h5>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
</ul>
|
|
|
@ -1,29 +0,0 @@
|
||||||
{{!-- <img src={{view.gravatarUrl}}>
|
|
||||||
|
|
||||||
<dl class="profile">
|
|
||||||
<div>
|
|
||||||
<dt>
|
|
||||||
GitHub
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
<a href={{urlGithub}}>{{user.login}}</a>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<dt>
|
|
||||||
Email
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
{{user.email}}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<dt>
|
|
||||||
Token
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
{{user.token}}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
</dl>
|
|
||||||
--}}
|
|
Loading…
Reference in New Issue
Block a user