2008-03-12 23:28:49 +03:00
|
|
|
<h2><%= l(:label_revision) %> <%= format_revision(@rev) %> <%= @path.gsub(/^.*\//, '') %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-03-29 22:14:59 +04:00
|
|
|
<!-- Choose view type -->
|
|
|
|
<% form_tag({ :controller => 'repositories', :action => 'diff'}, :method => 'get') do %>
|
|
|
|
<% params.each do |k, p| %>
|
|
|
|
<% if k != "type" %>
|
|
|
|
<%= hidden_field_tag(k,p) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<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
|
|
|
|
2008-06-08 20:48:21 +04:00
|
|
|
<p class="other-formats">
|
|
|
|
<%= l(:label_export_to) %>
|
|
|
|
<span><%= link_to 'Unified diff', params.merge(:format => 'diff') %></span>
|
|
|
|
</p>
|
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(with_leading_slash(@path), 'Diff') -%>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
|
|
|
<% end %>
|