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 @ 912:5e80956cc792
History | View | Annotate | Download (1018 Bytes)
| 1 | 119:8661b858af72 | Chris | <h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2> |
|---|---|---|---|
| 2 | 0:513646585e45 | Chris | |
| 3 | <!-- Choose view type -->
|
||
| 4 | 22:40f7cfd4df19 | chris | <% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
|
| 5 | 0:513646585e45 | Chris | <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
|
| 6 | <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
|
||
| 7 | 909:cbb26bc654de | Chris | <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 | 0:513646585e45 | Chris | <% 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 | 909:cbb26bc654de | Chris | <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
|
| 22 | 0:513646585e45 | Chris | <% end %>
|
| 23 | |||
| 24 | <% html_title(with_leading_slash(@path), 'Diff') -%>
|
||
| 25 | |||
| 26 | <% content_for :header_tags do %>
|
||
| 27 | <%= stylesheet_link_tag "scm" %>
|
||
| 28 | <% end %> |