Commit 8634d0d5c1a8c7c1dc0aa735bb7bd450ca6c9b86
1 parent
9ff75e6a
Exists in
spb-stable
and in
3 other branches
Sort projects by activity at group show page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/groups_controller.rb
... | ... | @@ -100,7 +100,7 @@ class GroupsController < ApplicationController |
100 | 100 | end |
101 | 101 | |
102 | 102 | def projects |
103 | - @projects ||= ProjectsFinder.new.execute(current_user, group: group) | |
103 | + @projects ||= ProjectsFinder.new.execute(current_user, group: group).sorted_by_activity.non_archived | |
104 | 104 | end |
105 | 105 | |
106 | 106 | def project_ids | ... | ... |