debian-mirror-gitlab/app/views/projects/diffs/_warning.html.haml

15 lines
755 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
.alert.alert-warning
%h4
2015-09-11 14:41:01 +05:30
Too many changes to show.
2015-04-26 12:48:37 +05:30
.pull-right
2017-09-10 17:25:29 +05:30
- 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"
- 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"
2015-04-26 12:48:37 +05:30
%p
To preserve performance only
2016-09-13 17:45:13 +05:30
%strong #{diff_files.size} of #{diff_files.real_size}
2015-04-26 12:48:37 +05:30
files are displayed.