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
commit 9eb5c2a66a
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')

View file

@ -7,7 +7,7 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
1. Install and configure PostgreSQL 9.1+
2. Install and configure Redis 2+
3. Install Rails 1.9.3 and Bundler.
3. Install Ruby 1.9.3 and Bundler.
3. Clone the project.
4. Create development and test databases in postgres.
5. Copy `config/database.yml.sample` and `config/redis.yml.sample` to `config/database.yml` and `config/redis.yml` and input the correct values to point to your postgres and redis instances.