]> source.dussan.org Git - redmine.git/commitdiff
Use radio buttons instead of a select.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 18 Sep 2012 20:51:31 +0000 (20:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 18 Sep 2012 20:51:31 +0000 (20:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10426 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/diff.html.erb

index 050e535525435aed0fa09b26cf9da5c1372a25a8..8f0f4ac8049425b3df70d6d39363c11ac1ace993 100644 (file)
@@ -5,11 +5,9 @@
   <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
   <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
   <p>
-    <label><%= l(:label_view_diff) %></label>
-    <%= select_tag 'type',
-                    options_for_select(
-                      [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
-                    :onchange => "if (this.value != '') {this.form.submit()}" %>
+    <%= 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 %>