Commit 30313d37 authored by bikebilly's avatar bikebilly Committed by Kamil Trzcinski

Enhance reuse in MR

parent 428d5e0a
...@@ -14,11 +14,10 @@ ...@@ -14,11 +14,10 @@
= render 'projects/last_push' = render 'projects/last_push'
- if @project.merge_requests.exists? %div{ class: container_class }
%div{ class: container_class } - if show_auto_devops_callout?(@project)
- if show_auto_devops_callout?(@project) = render 'shared/auto_devops_callout'
= render 'shared/auto_devops_callout' - if @project.merge_requests.exists?
.top-area .top-area
= render 'shared/issuable/nav', type: :merge_requests = render 'shared/issuable/nav', type: :merge_requests
.nav-controls .nav-controls
...@@ -31,5 +30,5 @@ ...@@ -31,5 +30,5 @@
.merge-requests-holder .merge-requests-holder
= render 'merge_requests' = render 'merge_requests'
- else - else
= render 'shared/empty_states/merge_requests', button_path: new_merge_request_path = render 'shared/empty_states/merge_requests', button_path: new_merge_request_path
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment