To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / repositories / diff.html.erb @ 1082:997f6d7738f7
History | View | Annotate | Download (1018 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>
|
| 8 |
<label><%= l(:label_view_diff) %></label> |
| 9 |
<%= select_tag 'type',
|
| 10 |
options_for_select(
|
| 11 |
[[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
|
| 12 |
:onchange => "if (this.value != '') {this.form.submit()}" %>
|
| 13 |
</p>
|
| 14 |
<% end %>
|
| 15 |
|
| 16 |
<% cache(@cache_key) do -%>
|
| 17 |
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
|
| 18 |
<% end -%>
|
| 19 |
|
| 20 |
<% other_formats_links do |f| %>
|
| 21 |
<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
|
| 22 |
<% end %>
|
| 23 |
|
| 24 |
<% html_title(with_leading_slash(@path), 'Diff') -%>
|
| 25 |
|
| 26 |
<% content_for :header_tags do %>
|
| 27 |
<%= stylesheet_link_tag "scm" %>
|
| 28 |
<% end %>
|