Commit 540c6070205509fe92f33ddc1f94640efcdef7ae

Authored by Joenio Costa
1 parent d98185b3

Show 12 organizations per page

(ActionItem2866)
plugins/sub_organizations/controllers/sub_organizations_plugin_profile_controller.rb
@@ -28,13 +28,13 @@ class SubOrganizationsPluginProfileController < ProfileController @@ -28,13 +28,13 @@ class SubOrganizationsPluginProfileController < ProfileController
28 @full = false 28 @full = false
29 elsif !params[:type] 29 elsif !params[:type]
30 @total = _profile 30 @total = _profile
31 - @total = @total.paginate(:per_page => 2, :page => params[:npage]) 31 + @total = @total.paginate(:per_page => 12, :page => params[:npage])
32 if params[:display] == 'compact' 32 if params[:display] == 'compact'
33 @full = false 33 @full = false
34 end 34 end
35 else 35 else
36 - @communities = @communities.paginate(:per_page => 2, :page => params[:npage])  
37 - @enterprises = @enterprises.paginate(:per_page => 2, :page => params[:npage]) 36 + @communities = @communities.paginate(:per_page => 12, :page => params[:npage])
  37 + @enterprises = @enterprises.paginate(:per_page => 12, :page => params[:npage])
38 end 38 end
39 end 39 end
40 40