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 -->
|
2012-09-27 20:05:33 +04:00
|
|
|
<%= form_tag({:action => 'diff', :id => @project,
|
|
|
|
:repository_id => @repository.identifier_param,
|
|
|
|
:path => to_path_param(@path), :rev=> @rev}, :method => 'get') do %>
|
2009-02-07 23:11:03 +03:00
|
|
|
<%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
|
2011-11-20 08:18:01 +04:00
|
|
|
<p>
|
2012-09-19 00:51:31 +04:00
|
|
|
<%= l(:label_view_diff) %>:
|
|
|
|
<label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
|
|
|
|
<label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
|
2011-11-20 08:18:01 +04:00
|
|
|
</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 -%>
|
2012-09-18 23:32:58 +04:00
|
|
|
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => @repository.class.scm_name} %>
|
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 %>
|