You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

diff.rhtml 962B

1234567891011121314151617181920212223
  1. <h2><%= l(:label_revision) %> <%= format_revision(@rev_to) + ':' if @rev_to %><%= format_revision(@rev) %> <%=h @path %></h2>
  2. <!-- Choose view type -->
  3. <% form_tag({}, :method => 'get') do %>
  4. <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
  5. <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
  6. <p><label><%= l(:label_view_diff) %></label>
  7. <%= 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>
  8. <% end %>
  9. <% cache(@cache_key) do -%>
  10. <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
  11. <% end -%>
  12. <% other_formats_links do |f| %>
  13. <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
  14. <% end %>
  15. <% html_title(with_leading_slash(@path), 'Diff') -%>
  16. <% content_for :header_tags do %>
  17. <%= stylesheet_link_tag "scm" %>
  18. <% end %>