mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
6
app/assets/javascripts/discourse/views/user/user_view.js.coffee
Normal file → Executable file
6
app/assets/javascripts/discourse/views/user/user_view.js.coffee
Normal file → Executable 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')
|
||||
Reference in New Issue
Block a user