From f00aa30f63f7214c8ada716a5947c8c95a0d24d2 Mon Sep 17 00:00:00 2001 From: Anthony Alberto Date: Thu, 14 Feb 2013 16:11:54 -0500 Subject: [PATCH] Fixes Issue #37 . Going to a user profile now updates the meta title. Also fixed a minor DEV guide typo. --- .../javascripts/discourse/views/user/user_view.js.coffee | 6 ++++++ docs/DEVELOPER-ADVANCED.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 app/assets/javascripts/discourse/views/user/user_view.js.coffee diff --git a/app/assets/javascripts/discourse/views/user/user_view.js.coffee b/app/assets/javascripts/discourse/views/user/user_view.js.coffee old mode 100644 new mode 100755 index 523844c44..2cfd6844c --- a/app/assets/javascripts/discourse/views/user/user_view.js.coffee +++ b/app/assets/javascripts/discourse/views/user/user_view.js.coffee @@ -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') \ No newline at end of file diff --git a/docs/DEVELOPER-ADVANCED.md b/docs/DEVELOPER-ADVANCED.md index 6d8a9b0ee..9aba16d1e 100644 --- a/docs/DEVELOPER-ADVANCED.md +++ b/docs/DEVELOPER-ADVANCED.md @@ -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.