diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-04 17:22:55 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-04 17:22:55 -0800 |
commit | 65105ff3bbe66363d4c922913dbc8c9514f1485c (patch) | |
tree | b659fa3ddfd4d9670c9170bf8bf95af64eb4aa07 /app/controllers/dashboard_controller.rb | |
parent | 694ac54862d9b88ee0e82577d8fbf622534391bf (diff) | |
download | gitlab-ce-65105ff3bbe66363d4c922913dbc8c9514f1485c.tar.gz |
Improve projects list
* Add search filtering for group projects
* Show all user projects on dashboard
* Refactor projects list into one view
* Hide big list of projects with 'Show all' button
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r-- | app/controllers/dashboard_controller.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 4930029e165..8f06a673584 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -5,15 +5,11 @@ class DashboardController < ApplicationController before_filter :event_filter, only: :show def show - # Fetch only 30 projects. - # If user needs more - point to Dashboard#projects page - @projects_limit = 30 - + @projects_limit = 20 @groups = current_user.authorized_groups.order_name_asc @has_authorized_projects = @projects.count > 0 @projects_count = @projects.count - @projects = @projects.includes(:namespace).limit(@projects_limit) - + @projects = @projects.includes(:namespace) @last_push = current_user.recent_push @publicish_project_count = Project.publicish(current_user).count |