summaryrefslogtreecommitdiff
path: root/app/controllers/explore
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-25 22:05:23 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-25 22:05:23 +0300
commit974b5a7b2f31f8e7d6b38a45bfd055a40651c945 (patch)
tree425fdc30fce0c7595001909ccff03d1f7ca341d8 /app/controllers/explore
parent76af5a1db73155c0a120f30cda9d60155146dfe1 (diff)
downloadgitlab-ce-974b5a7b2f31f8e7d6b38a45bfd055a40651c945.tar.gz
Most starred projects page for Explore area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/explore')
-rw-r--r--app/controllers/explore/projects_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb
index 05b3289682b..b6fa8b7e387 100644
--- a/app/controllers/explore/projects_controller.rb
+++ b/app/controllers/explore/projects_controller.rb
@@ -16,4 +16,10 @@ class Explore::ProjectsController < ApplicationController
@trending_projects = TrendingProjectsFinder.new.execute(current_user)
@trending_projects = @trending_projects.page(params[:page]).per(10)
end
+
+ def starred
+ @starred_projects = ProjectsFinder.new.execute(current_user)
+ @starred_projects = @starred_projects.order('star_count DESC')
+ @starred_projects = @starred_projects.page(params[:page]).per(10)
+ end
end