From 14e88565c68de056c83ddc53a68ade4c3f82b531 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 2 Aug 2018 15:12:07 +0300 Subject: [PATCH] Refactor pipline info box view Signed-off-by: Dmitriy Zaporozhets --- app/views/projects/pipelines/_info.html.haml | 4 ---- app/views/projects/pipelines/show.html.haml | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml index cdbef98df29..78e3b209686 100644 --- a/app/views/projects/pipelines/_info.html.haml +++ b/app/views/projects/pipelines/_info.html.haml @@ -1,7 +1,3 @@ -- commit = local_assigns.fetch(:commit) - -- return unless commit&.present? - .commit-box %h3.commit-title = markdown(commit.title, pipeline: :single_line) diff --git a/app/views/projects/pipelines/show.html.haml b/app/views/projects/pipelines/show.html.haml index 4066e2c590d..ff0ed3ed30d 100644 --- a/app/views/projects/pipelines/show.html.haml +++ b/app/views/projects/pipelines/show.html.haml @@ -4,10 +4,10 @@ - page_title "Pipeline" .js-pipeline-container{ class: container_class, data: { controller_action: "#{controller.action_name}" } } - #js-pipeline-header-vue.pipeline-header-container - = render "projects/pipelines/info", commit: @pipeline.commit + - if @pipeline.commit.present? + = render "projects/pipelines/info", commit: @pipeline.commit = render "projects/pipelines/with_tabs", pipeline: @pipeline