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
|
|
|
|
- if current_controller?(:commit) or current_controller?(:merge_requests)
|
|
|
|
- if current_controller?(:commit)
|
2016-06-02 11:05:42 +05:30
|
|
|
= link_to "Plain diff", namespace_project_commit_path(@project.namespace, @project, @commit, format: :diff), class: "btn btn-sm"
|
|
|
|
= link_to "Email patch", namespace_project_commit_path(@project.namespace, @project, @commit, format: :patch), class: "btn btn-sm"
|
2015-04-26 12:48:37 +05:30
|
|
|
- elsif @merge_request && @merge_request.persisted?
|
2016-06-02 11:05:42 +05:30
|
|
|
= 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.
|