|
|
- too_big = max_lines = diff.diff.lines.count > 1000
|
|
- too_big = max_lines = diff.diff.lines.count > 1000
|
|
|
- if too_big
|
|
- if too_big
|
|
|
= link_to_function "Diff suppressed. Click to show", "showDiff(this)", :class => "supp_diff_link"
|
|
%a.supp_diff_link Diff suppressed. Click to show
|
|
|
|
|
|
|
|
%table{:class => "#{'hide' if too_big}"}
|
|
%table{:class => "#{'hide' if too_big}"}
|
|
|
- each_diff_line(diff.diff.lines.to_a, index) do |line, type, line_code, line_new, line_old|
|
|
- each_diff_line(diff.diff.lines.to_a, index) do |line, type, line_code, line_new, line_old|
|
| ... | |
... | |
| ... | | ... | |