summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs/_warning.html.haml
blob: 402c18c447e919fb6e5dabc2146932861326385a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.alert.alert-warning
  %h4
    Too many changes to show.
    .pull-right
      - if current_controller?(:commit)
        = 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"
      - 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.