<%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

<%= stylesheet_link_tag "scm" %> <% parsing = false line_num_l = 0 line_num_r = 0 %> <% @diff.each do |line| %> <% if line =~ /^@@ (\+|\-)(\d+),\d+ (\+|\-)(\d+),\d+ @@/ line_num_l = $2.to_i line_num_r = $4.to_i if parsing %> <% end parsing = true next end next unless parsing %> <% case line[0, 1] when " " %> <% end %>
@<%= @rev %>@<%= @rev_to %>
 
<%= line_num_l %> <%= line_num_r %> <% line_num_l = line_num_l + 1 line_num_r = line_num_r + 1 when "-" %> <%= line_num_r %> <% line_num_r = line_num_r + 1 when "+" %> <%= line_num_l %> <% line_num_l = line_num_l + 1 else next end %> <%= h(line[1..-1]).gsub(/\s/, " ") %>