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.html.erb 1019B

12345678910111213141516171819202122232425262728
  1. <h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
  2. <!-- Choose view type -->
  3. <%= form_tag({:path => to_path_param(@path)}, :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>
  7. <label><%= l(:label_view_diff) %></label>
  8. <%= select_tag 'type',
  9. options_for_select(
  10. [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
  11. :onchange => "if (this.value != '') {this.form.submit()}" %>
  12. </p>
  13. <% end %>
  14. <% cache(@cache_key) do -%>
  15. <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
  16. <% end -%>
  17. <% other_formats_links do |f| %>
  18. <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
  19. <% end %>
  20. <% html_title(with_leading_slash(@path), 'Diff') -%>
  21. <% content_for :header_tags do %>
  22. <%= stylesheet_link_tag "scm" %>
  23. <% end %>