From 0383afc66ab889afc6af02203902d1d515723a96 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 25 Sep 2015 17:04:20 -0700 Subject: Add user preference to view project activity and starred project activity as default dashboard Closes #2662 --- app/controllers/root_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/root_controller.rb') diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 54171ff67c5..ad04c646e1b 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -22,6 +22,10 @@ class RootController < Dashboard::ProjectsController when 'stars' flash.keep redirect_to starred_dashboard_projects_path + when 'project_activity' + redirect_to activity_dashboard_path + when 'starred_project_activity' + redirect_to activity_dashboard_path(filter: 'starred') else return end -- cgit v1.2.3