##// END OF EJS Templates
use radio buttons instead of a select at attachment as same as r10426 repository...
Toshi MARUYAMA -
r10244:0af04b8ae031
parent child
Show More
@@ -6,15 +6,13
6 6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7 7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8 8 </div>
9 <p>
10 9 <%= form_tag({}, :method => 'get') do %>
11 <label><%= l(:label_view_diff) %></label>
12 <%= select_tag 'type',
13 options_for_select(
14 [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
15 :onchange => "if (this.value != '') {this.form.submit()}" %>
10 <p>
11 <%= l(:label_view_diff) %>:
12 <label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
13 <label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
14 </p>
16 15 <% end %>
17 </p>
18 16 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
19 17
20 18 <% html_title @attachment.filename %>
General Comments 0
You need to be logged in to leave comments. Login now