summaryrefslogtreecommitdiff
path: root/app/controllers/projects/pipelines_controller.rb
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-16 02:33:01 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-05-05 15:01:50 +0100
commit4c0adb9ee9ee6631b7cda6562d0e20b7daab8a9e (patch)
treebc5ca0c37afcbe140cfb4bad2752e32ba35043dc /app/controllers/projects/pipelines_controller.rb
parent992aafbc03e315b6f8fa6355ab1856934f95d758 (diff)
downloadgitlab-ce-4c0adb9ee9ee6631b7cda6562d0e20b7daab8a9e.tar.gz
Build failures summary page for pipelines
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r--app/controllers/projects/pipelines_controller.rb20
1 files changed, 14 insertions, 6 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 1780cc0233c..915f0bc63f7 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -1,6 +1,6 @@
class Projects::PipelinesController < Projects::ApplicationController
before_action :pipeline, except: [:index, :new, :create, :charts]
- before_action :commit, only: [:show, :builds]
+ before_action :commit, only: [:show, :builds, :failures]
before_action :authorize_read_pipeline!
before_action :authorize_create_pipeline!, only: [:new, :create]
before_action :authorize_update_pipeline!, only: [:retry, :cancel]
@@ -67,11 +67,11 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def builds
- respond_to do |format|
- format.html do
- render 'show'
- end
- end
+ render_show
+ end
+
+ def failures
+ render_show
end
def status
@@ -111,6 +111,14 @@ class Projects::PipelinesController < Projects::ApplicationController
private
+ def render_show
+ respond_to do |format|
+ format.html do
+ render 'show'
+ end
+ end
+ end
+
def create_params
params.require(:pipeline).permit(:ref)
end