Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 09:40:00 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 09:40:00 +0300
commit70edf950fe6baf90bb98c904d9132924e55e50d6 (patch)
treec09eee0b3ddfef7372ffc36f8c453ba935945ceb /app/controllers/users_controller.rb
parentd905a431e89423a901ff5cd242c5f2bf90a4f511 (diff)
Show contributed projects on user page and stars for it
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 84a04c5ebe6..e4f588c6a60 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -8,6 +8,9 @@ class UsersController < ApplicationController
visible_projects = ProjectsFinder.new.execute(current_user)
authorized_projects_ids = visible_projects.pluck(:id)
+ @contributed_projects = Project.where(id: authorized_projects_ids).
+ in_group_namespace
+
@projects = @user.personal_projects.
where(id: authorized_projects_ids)