gitlab-org--gitlab-foss/app/views/projects/diffs/_warning.html.haml

15 lines
755 B
Text
Raw Normal View History

2015-03-06 21:36:22 -05:00
.alert.alert-warning
%h4
Too many changes to show.
.pull-right
2017-06-13 18:12:31 -04:00
- if current_controller?(:commit)
= link_to "Plain diff", project_commit_path(@project, @commit, format: :diff), class: "btn btn-sm"
= link_to "Email patch", project_commit_path(@project, @commit, format: :patch), class: "btn btn-sm"
2017-06-13 18:12:31 -04:00
- elsif current_controller?('projects/merge_requests/diffs') && @merge_request&.persisted?
= link_to "Plain diff", merge_request_path(@merge_request, format: :diff), class: "btn btn-sm"
= link_to "Email patch", merge_request_path(@merge_request, format: :patch), class: "btn btn-sm"
%p
To preserve performance only
%strong #{diff_files.size} of #{diff_files.real_size}
files are displayed.