<%= 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()}" %>
<%= submit_tag l(:button_apply) %>
<% end %>
<% @diff.each do |table_file| %>
<% if params[:type] == 'sbs' %>
<%= l(:label_attachment) %>: <%= table_file.file_name %>
|
<%= l(:label_revision) %> <%= @rev %> |
<%= l(:label_revision) %> <%= @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 %>
<%= l(:label_attachment) %>: <%= 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 %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>