diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-08 17:44:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-08 17:44:54 +0000 |
commit | 183ede84fd80c8d4592869dfb631ec6c2ad58543 (patch) | |
tree | 895a304a52c2873fb27a7bc7d8be86f0f50d7fb8 /app/controllers/projects_controller.rb | |
parent | bd9a44c2254ab785014207cb07f8b2fff1068b34 (diff) | |
download | redmine-183ede84fd80c8d4592869dfb631ec6c2ad58543.tar.gz redmine-183ede84fd80c8d4592869dfb631ec6c2ad58543.zip |
Various changes on views. On project summary, members are now grouped by role and subprojects are listed inline.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@434 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 6bbf7efce..c3170bf5e 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -83,7 +83,7 @@ class ProjectsController < ApplicationController # Show @project def show @custom_values = @project.custom_values.find(:all, :include => :custom_field) - @members = @project.members.find(:all, :include => [:user, :role], :order => 'position') + @members_by_role = @project.members.find(:all, :include => [:user, :role], :order => 'position').group_by {|m| m.role} @subprojects = @project.children if @project.children.size > 0 @news = @project.news.find(:all, :limit => 5, :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC") @trackers = Tracker.find(:all, :order => 'position') |