##// 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 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8 </div>
8 </div>
9 <p>
10 <%= form_tag({}, :method => 'get') do %>
9 <%= form_tag({}, :method => 'get') do %>
11 <label><%= l(:label_view_diff) %></label>
10 <p>
12 <%= select_tag 'type',
11 <%= l(:label_view_diff) %>:
13 options_for_select(
12 <label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
14 [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
13 <label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
15 :onchange => "if (this.value != '') {this.form.submit()}" %>
14 </p>
16 <% end %>
15 <% end %>
17 </p>
18 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
16 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
19
17
20 <% html_title @attachment.filename %>
18 <% html_title @attachment.filename %>
General Comments 0
You need to be logged in to leave comments. Login now