summaryrefslogtreecommitdiffstats
path: root/app/views/attachments/diff.html.erb
blob: 5f5f4d7eba2f5d695721c6e7f208d9ef4712ae7c (plain)
1
2
3
4
5
6
7
8
9
10
<%= render :layout => 'layouts/file' do %>
<%= form_tag({}, :method => 'get') do %>
  <p>
    <%= l(:label_view_diff) %>:
    <label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
    <label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
  </p>
<% end %>
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
<% end %>