summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-03 16:00:09 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-03 16:00:09 +0100
commitafe9a07a9ebed594e1d6d01474d434760a633a02 (patch)
treee40606b16d5da2af85dc2ebdc559fbdf82f4a3bf /app/controllers
parent617bb1096deb1fb5dea66d04b9bbd7da0dfb57ba (diff)
downloadgitlab-ce-afe9a07a9ebed594e1d6d01474d434760a633a02.tar.gz
Revert "Revert "Sort starred projects on dashboard based on last activity by default""sort-starred-projects
This reverts commit 617bb1096deb1fb5dea66d04b9bbd7da0dfb57ba.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/dashboard/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb
index aeafbd30143..dc880b634e5 100644
--- a/app/controllers/dashboard/projects_controller.rb
+++ b/app/controllers/dashboard/projects_controller.rb
@@ -31,7 +31,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
end
def starred
- @projects = current_user.starred_projects
+ @projects = current_user.starred_projects.sorted_by_activity
@projects = @projects.includes(:namespace, :forked_from_project, :tags)
@projects = @projects.sort(@sort = params[:sort])