diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-24 15:08:33 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-24 15:10:25 +0200 |
commit | 2759b13ae99dc1d30516123390bbdb73258fa270 (patch) | |
tree | 06db632843fbb462dc75c8b6af76c8a5f1fa373f /app/controllers | |
parent | 353d426e4e68006ba8cea90e2f6ad4e8956cb6a9 (diff) | |
download | gitlab-ce-2759b13ae99dc1d30516123390bbdb73258fa270.tar.gz |
Remove CI dashboard
With CI status integrated at GitLab projects page there is no reason to keep it
anymore.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/ci/projects_controller.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb index 250a2e79313..6111753a7fb 100644 --- a/app/controllers/ci/projects_controller.rb +++ b/app/controllers/ci/projects_controller.rb @@ -1,9 +1,9 @@ module Ci class ProjectsController < Ci::ApplicationController - before_action :authenticate_user!, except: [:build, :badge, :index, :show] + before_action :authenticate_user!, except: [:build, :badge, :show] before_action :authenticate_public_page!, only: :show before_action :project, only: [:build, :show, :badge, :edit, :update, :destroy, :toggle_shared_runners, :dumped_yaml] - before_action :authorize_access_project!, except: [:build, :badge, :index, :show, :new, :disabled] + before_action :authorize_access_project!, except: [:build, :badge, :show, :new, :disabled] before_action :authorize_manage_project!, only: [:edit, :update, :destroy, :toggle_shared_runners, :dumped_yaml] before_action :authenticate_token!, only: [:build] before_action :no_cache, only: [:badge] @@ -15,18 +15,6 @@ module Ci def disabled end - def index - @projects = Ci::Project.all - - if current_user - @projects = @projects.where(gitlab_id: current_user.authorized_projects.pluck(:id)) - end - - @projects = @projects.search(params[:search]) if params[:search].present? - @projects = @projects.includes(:last_commit).order('ci_commits.created_at DESC') - @projects = @projects.page(params[:page]).per(40) - end - def show @ref = params[:ref] |