##// END OF EJS Templates
Display the changeset details when the diff is for a single changeset only (#4266)....
Jean-Philippe Lang -
r14759:453c4ae58013
parent child
Show More
@@ -1,27 +1,31
1 <% if @changeset_to %>
2 <h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%= @path %></h2>
3 <% else %>
1 4 <%= render :partial => 'changeset' %>
5 <% end %>
2 6
3 7 <!-- Choose view type -->
4 8 <%= form_tag({:action => 'diff', :id => @project,
5 9 :repository_id => @repository.identifier_param,
6 10 :path => to_path_param(@path), :rev=> @rev}, :method => 'get') do %>
7 11 <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
8 12 <p>
9 13 <%= l(:label_view_diff) %>:
10 14 <label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
11 15 <label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
12 16 </p>
13 17 <% end %>
14 18
15 19 <% cache(@cache_key) do -%>
16 20 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => @repository.class.scm_name} %>
17 21 <% end -%>
18 22
19 23 <% other_formats_links do |f| %>
20 24 <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
21 25 <% end %>
22 26
23 27 <% html_title(with_leading_slash(@path), 'Diff') -%>
24 28
25 29 <% content_for :header_tags do %>
26 30 <%= stylesheet_link_tag "scm" %>
27 31 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now