<%= l(:label_revision) %> <%= @rev %>: <%= @path.gsub(/^.*\//, '') %>
<% form_tag({ :controller => 'repositories', :action => 'diff'}, :method => 'get') do %>
<% params.each do |k, p| %>
<% if k != "type" %>
<%= hidden_field_tag(k,p) %>
<% end %>
<% end %>
<%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], params[:type]), :onchange => "if (this.value != '') {this.form.submit()}" %>
<% end %>
<% cache(@cache_key) do %>
<% @diff.each do |table_file| %>
<% if @diff_type == 'sbs' %>
<%= table_file.file_name %>
|
@<%= @rev %> |
@<%= @rev_to %> |
<% table_file.keys.sort.each do |key| %>
<%= table_file[key].nb_line_left %>
|
<%= table_file[key].line_left %>
|
<%= table_file[key].nb_line_right %>
|
<%= table_file[key].line_right %>
|
<% end %>
<% else %>
<%= table_file.file_name %>
|
@<%= @rev %> |
@<%= @rev_to %> |
|
<% table_file.keys.sort.each do |key, line| %>
<%= table_file[key].nb_line_left %>
|
<%= table_file[key].nb_line_right %>
|
<% if table_file[key].line_left.empty? %>
<%= table_file[key].line_right %>
|
<% else %>
<%= table_file[key].line_left %>
|
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>