Refactor pipline info box view

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-08-02 15:12:07 +03:00
parent 8cd80da8bb
commit 14e88565c6
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 2 additions and 6 deletions

View file

@ -1,7 +1,3 @@
- commit = local_assigns.fetch(:commit)
- return unless commit&.present?
.commit-box
%h3.commit-title
= markdown(commit.title, pipeline: :single_line)

View file

@ -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