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
|
|
|
|
- unless diff_hard_limit_enabled?
|
2015-09-11 14:41:01 +05:30
|
|
|
= link_to "Reload with full diff", url_for(params.merge(force_show_diff: true, format: nil)), class: "btn btn-sm btn-warning"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
- if current_controller?(:commit) or current_controller?(:merge_requests)
|
|
|
|
- if current_controller?(:commit)
|
|
|
|
= 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"
|
|
|
|
- elsif @merge_request && @merge_request.persisted?
|
|
|
|
= 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"
|
|
|
|
%p
|
|
|
|
To preserve performance only
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong #{shown_files_count} of #{diffs.size}
|
2015-04-26 12:48:37 +05:30
|
|
|
files are displayed.
|
|
|
|
|