This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/user/user_view.js.coffee

8 lines
301 B
CoffeeScript
Executable File

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')