Index: app/views/settings/_general.rhtml =================================================================== --- app/views/settings/_general.rhtml (revision 2094) +++ app/views/settings/_general.rhtml (working copy) @@ -48,6 +48,9 @@
<%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %>
++<%= text_field_tag 'settings[diff_max_lines_displayed]', Setting.diff_max_lines_displayed, :size => 6 %>
+<%= check_box_tag 'settings[gravatar_enabled]', 1, Setting.gravatar_enabled? %><%= hidden_field_tag 'settings[gravatar_enabled]', 0 %>
Index: app/views/common/_diff.rhtml =================================================================== --- app/views/common/_diff.rhtml (revision 2111) +++ app/views/common/_diff.rhtml (working copy) @@ -1,4 +1,5 @@ -<% Redmine::UnifiedDiff.new(diff, :type => diff_type).each do |table_file| -%> +<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%> +<% diff.each do |table_file| -%>