summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-18 23:48:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-18 23:48:52 +0000
commit0af04b8ae031398adbeebf5536f934d3c1ba9148 (patch)
tree0e395823bd22b8d62398bbdbfd96a7eb2ad9d128 /app/views/attachments
parent3586e44c1d3282dbc5a580ec757edf02a80239d6 (diff)
downloadredmine-0af04b8ae031398adbeebf5536f934d3c1ba9148.tar.gz
redmine-0af04b8ae031398adbeebf5536f934d3c1ba9148.zip
use radio buttons instead of a select at attachment as same as r10426 repository
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10427 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/diff.html.erb12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/attachments/diff.html.erb b/app/views/attachments/diff.html.erb
index f429ba3f8..b8fb69048 100644
--- a/app/views/attachments/diff.html.erb
+++ b/app/views/attachments/diff.html.erb
@@ -6,15 +6,13 @@
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
</div>
-<p>
<%= form_tag({}, :method => 'get') do %>
- <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()}" %>
+ <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 %>
-</p>
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
<% html_title @attachment.filename %>