diff --git a/app/views/common/_diff.rhtml b/app/views/common/_diff.rhtml index 619790c13..03b06a0ce 100644 --- a/app/views/common/_diff.rhtml +++ b/app/views/common/_diff.rhtml @@ -1,66 +1,56 @@ <% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%> + <% diff.each do |table_file| -%>
<%=to_utf8 table_file.file_name %> | |||||||
---|---|---|---|---|---|---|---|
... | ... | + | ... | ... | + | ||
<%= table_file[key].nb_line_left %> | -
- <%=to_utf8 table_file[key].line_left %>+ | <%= line.nb_line_left %> | +
+ <%=to_utf8 line.html_line_left %> |
- <%= table_file[key].nb_line_right %> | -
- <%=to_utf8 table_file[key].line_right %>+ | <%= line.nb_line_right %> | +
+ <%=to_utf8 line.html_line_right %> |
<%=to_utf8 table_file.file_name %> | ||||||
---|---|---|---|---|---|---|
... | ... | + | ... | ... | ||
<%= table_file[key].nb_line_left %> | -<%= table_file[key].nb_line_right %> | - <% if table_file[key].line_left.empty? -%> -
- <%=to_utf8 table_file[key].line_right %>+ | <%= line.nb_line_left %> | +<%= line.nb_line_right %> | +
+ <%=to_utf8 line.html_line %> |
- <% else -%>
-
- <%=to_utf8 table_file[key].line_left %>- |
- <% end -%>