summaryrefslogtreecommitdiffstats
path: root/app/controllers/roles_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-08 17:44:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-08 17:44:54 +0000
commit183ede84fd80c8d4592869dfb631ec6c2ad58543 (patch)
tree895a304a52c2873fb27a7bc7d8be86f0f50d7fb8 /app/controllers/roles_controller.rb
parentbd9a44c2254ab785014207cb07f8b2fff1068b34 (diff)
downloadredmine-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/roles_controller.rb')
-rw-r--r--app/controllers/roles_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index 0eba46d1e..57398f323 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -28,7 +28,7 @@ class RolesController < ApplicationController
end
def list
- @role_pages, @roles = paginate :roles, :per_page => 10, :order => "position"
+ @role_pages, @roles = paginate :roles, :per_page => 25, :order => "position"
render :action => "list", :layout => false if request.xhr?
end
@@ -101,7 +101,7 @@ class RolesController < ApplicationController
end
def report
- @roles = Role.find :all
+ @roles = Role.find(:all, :order => 'position')
@permissions = Permission.find :all, :conditions => ["is_public=?", false], :order => 'sort'
if request.post?
@roles.each do |role|