2011-01-11 19:04:07 +03:00
|
|
|
<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-03-29 22:14:59 +04:00
|
|
|
<!-- Choose view type -->
|
2010-09-18 20:50:08 +04:00
|
|
|
<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
|
2009-02-07 23:11:03 +03:00
|
|
|
<%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
|
|
|
|
<%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
|
2007-03-29 22:14:59 +04:00
|
|
|
<p><label><%= l(:label_view_diff) %></label>
|
2007-11-08 22:14:34 +03:00
|
|
|
<%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %></p>
|
2007-03-29 22:14:59 +04:00
|
|
|
<% end %>
|
2007-05-02 00:56:19 +04:00
|
|
|
|
2008-06-02 23:18:17 +04:00
|
|
|
<% cache(@cache_key) do -%>
|
2008-06-08 22:10:49 +04:00
|
|
|
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
|
2008-06-02 23:18:17 +04:00
|
|
|
<% end -%>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2009-01-29 16:53:17 +03:00
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
|
|
|
|
<% end %>
|
2008-06-08 20:48:21 +04:00
|
|
|
|
2011-07-30 23:51:06 +04:00
|
|
|
<% html_title(h(with_leading_slash(@path)), 'Diff') -%>
|
2008-01-03 01:41:53 +03:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
|
|
|
<% end %>
|