code layout clean up app/views/repositories/diff.html.erb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7859 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-20 04:18:01 +00:00
parent 2d7f0d66b2
commit 700c6de3db
1 changed files with 7 additions and 2 deletions

View File

@ -4,8 +4,13 @@
<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
<%= 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()}" %></p>
<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()}" %>
</p>
<% end %>
<% cache(@cache_key) do -%>