Revision 422:19549b0c417a app
| app/controllers/projects_controller.rb | ||
|---|---|---|
| 59 | 59 |
@offset ||= @project_pages.current.offset |
| 60 | 60 |
@projects = Project.visible_roots.all(:offset => @offset, :limit => @limit, :order => sort_clause) |
| 61 | 61 |
if User.current.logged? |
| 62 |
@user_projects = User.current.projects.sort_by(&:name) |
|
| 62 |
# seems sort_by gives us case-sensitive ordering, which we don't want |
|
| 63 |
# @user_projects = User.current.projects.sort_by(&:name) |
|
| 64 |
@user_projects = User.current.projects.all(:order => :name) |
|
| 63 | 65 |
end |
| 64 | 66 |
render :template => 'projects/index.rhtml', :layout => !request.xhr? |
| 65 | 67 |
} |
Also available in: Unified diff