Merge pull request #163 from anthonyalberto/master

Fixes Issue #37 . Going to a user profile now updates the meta title.
This commit is contained in:
Sam
2013-02-14 17:27:47 -08:00
2 changed files with 7 additions and 1 deletions

View File

@@ -1,2 +1,8 @@
window.Discourse.UserView = Ember.View.extend
templateName: 'user/user'
userBinding: 'controller.content'
updateTitle: (->
username = @get('user.username')
Discourse.set('title', "#{Em.String.i18n("user.profile")} - #{username}") if username
).observes('user.loaded', 'user.username')