Skip to content
Snippets Groups Projects
Verified Commit ec3f4f5b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Projects on group page should be sorted by last activity instead of id/created_at

parent f026e53c
No related branches found
No related tags found
No related merge requests found
Loading
@@ -40,6 +40,7 @@ class GroupsController < Groups::ApplicationController
Loading
@@ -40,6 +40,7 @@ class GroupsController < Groups::ApplicationController
@last_push = current_user.recent_push if current_user @last_push = current_user.recent_push if current_user
   
@projects = @projects.includes(:namespace) @projects = @projects.includes(:namespace)
@projects = @projects.sorted_by_activity
@projects = filter_projects(@projects) @projects = filter_projects(@projects)
@projects = @projects.sort(@sort = params[:sort]) @projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page]) if params[:filter_projects].blank? @projects = @projects.page(params[:page]) if params[:filter_projects].blank?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment