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] %>
|
2011-11-20 08:18:01 +04:00
|
|
|
<p>
|
|
|
|
<label><%= l(:label_view_diff) %></label>
|
|
|
|
<%= 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| %>
|
2011-09-17 12:05:20 +04:00
|
|
|
<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
|
2009-01-29 16:53:17 +03:00
|
|
|
<% end %>
|
2008-06-08 20:48:21 +04:00
|
|
|
|
2011-10-02 22:45:17 +04:00
|
|
|
<% html_title(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 %>
|