<% if !@changes.blank? && @type == "3" %>

改动了 <%= @changes_count %> 个文件

<% @changes.each do |change| %>
<%= change['new_path'] %>
<% line_num = diff_line_num(change['diff']) %> <% diff_content = diff_content(change['diff']) %> <% syntax_highlight_lines('new_path', Redmine::CodesetUtil.to_utf8_by_setting(diff_content)).each do |line| %> <% if line[0,1] == "-" %> <% elsif line[0,1] == "+" %> <% else%> <% end %> <% line_num += 1 %> <% end %>
<%= line_num %>
<%= line.html_safe %>
<%= line.html_safe %>
<%= line.html_safe %>
<% end %>
<% end %>