From eae27d1ecbfec7ea928b27e0ffc96abeb4a49f7a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 23 Sep 2015 16:16:45 +0200 Subject: Move CI charts to project graphs area Signed-off-by: Dmitriy Zaporozhets --- app/controllers/ci/charts_controller.rb | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 app/controllers/ci/charts_controller.rb (limited to 'app/controllers/ci') diff --git a/app/controllers/ci/charts_controller.rb b/app/controllers/ci/charts_controller.rb deleted file mode 100644 index aa875e70987..00000000000 --- a/app/controllers/ci/charts_controller.rb +++ /dev/null @@ -1,24 +0,0 @@ -module Ci - class ChartsController < Ci::ApplicationController - before_action :authenticate_user! - before_action :project - before_action :authorize_access_project! - before_action :authorize_manage_project! - - layout 'ci/project' - - def show - @charts = {} - @charts[:week] = Ci::Charts::WeekChart.new(@project) - @charts[:month] = Ci::Charts::MonthChart.new(@project) - @charts[:year] = Ci::Charts::YearChart.new(@project) - @charts[:build_times] = Ci::Charts::BuildTime.new(@project) - end - - protected - - def project - @project = Ci::Project.find(params[:project_id]) - end - end -end -- cgit v1.2.1