diff app/controllers/projects_controller.rb @ 1190:91db8e091f10 cannam

Remove My Projects from projects list (now in My Page)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 22 Jan 2013 15:45:29 +0000
parents ea5d9652c6f6
children 16826c3afbba
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb	Tue Jan 22 15:45:11 2013 +0000
+++ b/app/controllers/projects_controller.rb	Tue Jan 22 15:45:29 2013 +0000
@@ -58,11 +58,6 @@
         @project_pages = Paginator.new self, @project_count, @limit, params['page']
         @offset ||= @project_pages.current.offset
         @projects = Project.visible_roots.all(:offset => @offset, :limit => @limit, :order => sort_clause) 
-        if User.current.logged?
-          # seems sort_by gives us case-sensitive ordering, which we don't want
-#          @user_projects = User.current.projects.sort_by(&:name)
-          @user_projects = User.current.projects.all(:order => :name)
-        end
         render :template => 'projects/index.html.erb', :layout => !request.xhr?
       }
       format.api  {