To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / repositories / diff.rhtml @ 442:753f1380d6bc

History | View | Annotate | Download (944 Bytes)

1
<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
2

    
3
<!-- Choose view type -->
4
<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
5
  <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
6
  <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
7
  <p><label><%= l(:label_view_diff) %></label>
8
  <%= 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>
9
<% end %>
10

    
11
<% cache(@cache_key) do -%>
12
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
13
<% end -%>
14

    
15
<% other_formats_links do |f| %>
16
        <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
17
<% end %>
18

    
19
<% html_title(with_leading_slash(@path), 'Diff') -%>
20

    
21
<% content_for :header_tags do %>
22
<%= stylesheet_link_tag "scm" %>
23
<% end %>