debian-mirror-gitlab/app/views/projects/diffs/_warning.html.haml

13 lines
848 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
.alert.alert-warning
%h4
2019-02-15 15:39:39 +05:30
= _("Too many changes to show.")
2018-11-08 19:23:39 +05:30
.float-right
2017-09-10 17:25:29 +05:30
- if current_controller?(:commit)
2019-02-15 15:39:39 +05:30
= link_to _("Plain diff"), project_commit_path(@project, @commit, format: :diff), class: "btn btn-sm"
= link_to _("Email patch"), project_commit_path(@project, @commit, format: :patch), class: "btn btn-sm"
2017-09-10 17:25:29 +05:30
- elsif current_controller?('projects/merge_requests/diffs') && @merge_request&.persisted?
2019-02-15 15:39:39 +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
2019-02-15 15:39:39 +05:30
= _("To preserve performance only <strong>%{display_size} of %{real_size}</strong> files are displayed.").html_safe % { display_size: diff_files.size, real_size: diff_files.real_size }