% 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 %> | |||
---|---|---|---|
... | ... | <% end -%> | |
<%= table_file[key].nb_line_left %> |
<%=to_utf8 table_file[key].line_left %> |
<%= table_file[key].nb_line_right %> |
<%=to_utf8 table_file[key].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 %> |
<% else -%>
<%=to_utf8 table_file[key].line_left %> |
<% end -%>