removed locale dropdown in profile and removed colon separators
This commit is contained in:
parent
007c53c909
commit
072e89ad8e
|
@ -3,7 +3,7 @@
|
|||
<dl class="profile">
|
||||
<div>
|
||||
<dt>
|
||||
{{t profiles.show.github}}:
|
||||
{{t profiles.show.github}}
|
||||
</dt>
|
||||
<dd>
|
||||
<a {{bind-attr href="urlGithub"}}>{{user.login}}</a>
|
||||
|
@ -11,7 +11,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<dt>
|
||||
{{t profiles.show.email}}:
|
||||
{{t profiles.show.email}}
|
||||
</dt>
|
||||
<dd>
|
||||
{{user.email}}
|
||||
|
@ -19,22 +19,10 @@
|
|||
</div>
|
||||
<div>
|
||||
<dt>
|
||||
{{t profiles.show.token}}:
|
||||
{{t profiles.show.token}}
|
||||
</dt>
|
||||
<dd>
|
||||
{{user.token}}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>
|
||||
{{t profiles.show.locale}}:
|
||||
</dt>
|
||||
<dd>
|
||||
{{view Ember.Select id="locale"
|
||||
contentBinding="view.locales"
|
||||
valueBinding="user.locale"
|
||||
optionLabelPath="content.name"
|
||||
optionValuePath="content.key"}}
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
|
|
@ -43,27 +43,3 @@ Travis.reopen
|
|||
gravatarUrl: (->
|
||||
"#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=200&d=mm"
|
||||
).property('user.gravatarId')
|
||||
|
||||
locale: (->
|
||||
@get('user.locale')
|
||||
).property('user.locale')
|
||||
|
||||
locales: (->
|
||||
[
|
||||
{ key: null, name: '' }
|
||||
{ key: 'en', name: 'English' }
|
||||
{ key: 'es', name: 'Español' }
|
||||
{ key: 'fr', name: 'Français' }
|
||||
{ key: 'ja', name: '日本語' }
|
||||
{ key: 'nl', name: 'Nederlands' }
|
||||
{ key: 'nb', name: 'Norsk Bokmål' }
|
||||
{ key: 'pl', name: 'Polski' }
|
||||
{ key: 'pt-BR', name: 'Português brasileiro' }
|
||||
{ key: 'ru', name: 'Русский' }
|
||||
{ key: 'de', name: 'Deutsch' }
|
||||
]
|
||||
).property()
|
||||
|
||||
change: ->
|
||||
return unless $('#locale').val()
|
||||
@get('user').updateLocale($('#locale').val())
|
||||
|
|
Loading…
Reference in New Issue
Block a user