2015-03-06 21:36:22 -05:00
|
|
|
.alert.alert-warning
|
2014-07-15 11:28:21 -04:00
|
|
|
%h4
|
2015-07-06 16:03:36 -04:00
|
|
|
Too many changes to show.
|
2014-07-15 11:28:21 -04:00
|
|
|
.pull-right
|
|
|
|
- unless diff_hard_limit_enabled?
|
2015-08-25 02:35:26 -04:00
|
|
|
= link_to "Reload with full diff", url_for(params.merge(force_show_diff: true, format: nil)), class: "btn btn-sm btn-warning"
|
2014-07-15 11:28:21 -04:00
|
|
|
|
|
|
|
- if current_controller?(:commit) or current_controller?(:merge_requests)
|
|
|
|
- if current_controller?(:commit)
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to "Plain diff", namespace_project_commit_path(@project.namespace, @project, @commit, format: :diff), class: "btn btn-warning btn-sm"
|
|
|
|
= link_to "Email patch", namespace_project_commit_path(@project.namespace, @project, @commit, format: :patch), class: "btn btn-warning btn-sm"
|
2014-07-15 11:28:21 -04:00
|
|
|
- elsif @merge_request && @merge_request.persisted?
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to "Plain diff", merge_request_path(@merge_request, format: :diff), class: "btn btn-warning btn-sm"
|
|
|
|
= link_to "Email patch", merge_request_path(@merge_request, format: :patch), class: "btn btn-warning btn-sm"
|
2014-07-15 11:28:21 -04:00
|
|
|
%p
|
|
|
|
To preserve performance only
|
2015-04-27 12:06:51 -04:00
|
|
|
%strong #{shown_files_count} of #{diffs.size}
|
2015-02-14 15:13:31 -05:00
|
|
|
files are displayed.
|
2014-07-15 11:28:21 -04:00
|
|
|
|