Commit 9b635e1c authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Annabel Dunstone Gray

Resolve "Modify the empty state of changes in MR"

parent 2cbb2d0e
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
color: $gl-text-color; color: $gl-text-color;
font-weight: $gl-font-weight-normal; font-weight: $gl-font-weight-normal;
font-size: 14px; font-size: 14px;
line-height: 36px;
&.diff-collapsed { &.diff-collapsed {
padding: 5px; padding: 5px;
......
...@@ -4,14 +4,17 @@ ...@@ -4,14 +4,17 @@
= render 'projects/merge_requests/diffs/commit_widget' = render 'projects/merge_requests/diffs/commit_widget'
- if @merge_request_diff&.empty? - if @merge_request_diff&.empty?
.nothing-here-block .row.empty-state.nothing-here-block
= image_tag 'illustrations/merge_request_changes_empty.svg' .col-xs-12
= succeed '.' do .svg-content= image_tag 'illustrations/merge_request_changes_empty.svg'
No changes between .col-xs-12
%span.ref-name= @merge_request.source_branch .text-content.text-center
and %p
%span.ref-name= @merge_request.target_branch No changes between
%p= link_to 'Create commit', project_new_blob_path(@project, @merge_request.source_branch), class: 'btn btn-save' %span.ref-name= @merge_request.source_branch
and
%span.ref-name= @merge_request.target_branch
.text-center= link_to 'Create commit', project_new_blob_path(@project, @merge_request.source_branch), class: 'btn btn-save'
- else - else
- diff_viewable = @merge_request_diff ? @merge_request_diff.collected? || @merge_request_diff.overflow? : true - diff_viewable = @merge_request_diff ? @merge_request_diff.collected? || @merge_request_diff.overflow? : true
- if diff_viewable - if diff_viewable
......
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