BigW Consortium Gitlab

_warning.html.haml 868 Bytes
Newer Older
1
.alert.alert-warning
2
  %h4
3
    Too many changes to show.
4 5 6
    .pull-right
      - if current_controller?(:commit) or current_controller?(:merge_requests)
        - if current_controller?(:commit)
7 8
          = 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"
9
        - elsif @merge_request && @merge_request.persisted?
10 11
          = 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"
12 13
  %p
    To preserve performance only
14
    %strong #{diff_files.size} of #{diff_files.real_size}
15
    files are displayed.