From 7fa0957b0ad4f090c3a34e5811925a4b7bd1f1a6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 17 Sep 2011 04:02:49 +0000 Subject: [PATCH] remove trailing white-spaces from app/views/my/page_layout.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7281 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/my/page_layout.html.erb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/views/my/page_layout.html.erb b/app/views/my/page_layout.html.erb index d2ad84ce6..1155905f1 100644 --- a/app/views/my/page_layout.html.erb +++ b/app/views/my/page_layout.html.erb @@ -4,7 +4,7 @@ function recreateSortables() { Sortable.destroy('list-top'); Sortable.destroy('list-left'); Sortable.destroy('list-right'); - + Sortable.create("list-top", {constraint:false, containment:['list-top','list-left','list-right'], dropOnEmpty:true, handle:'handle', onUpdate:function(){new Ajax.Request('<%= url_for(:controller => 'my', :action => 'order_blocks', :group => 'top') %>', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize("list-top")})}, only:'mypage-box', tag:'div'}) Sortable.create("list-left", {constraint:false, containment:['list-top','list-left','list-right'], dropOnEmpty:true, handle:'handle', onUpdate:function(){new Ajax.Request('<%= url_for(:controller => 'my', :action => 'order_blocks', :group => 'left') %>', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize("list-left")})}, only:'mypage-box', tag:'div'}) Sortable.create("list-right", {constraint:false, containment:['list-top','list-left','list-right'], dropOnEmpty:true, handle:'handle', onUpdate:function(){new Ajax.Request('<%= url_for(:controller => 'my', :action => 'order_blocks', :group => 'right') %>', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize("list-right")})}, only:'mypage-box', tag:'div'}) @@ -53,21 +53,21 @@ function removeBlock(block) {

<%=l(:label_my_page)%>

- <% @blocks['top'].each do |b| + <% @blocks['top'].each do |b| next unless MyController::BLOCKS.keys.include? b %> <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> <% end if @blocks['top'] %>
- <% @blocks['left'].each do |b| + <% @blocks['left'].each do |b| next unless MyController::BLOCKS.keys.include? b %> <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> <% end if @blocks['left'] %>
- <% @blocks['right'].each do |b| + <% @blocks['right'].each do |b| next unless MyController::BLOCKS.keys.include? b %> <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> <% end if @blocks['right'] %> @@ -82,9 +82,8 @@ function removeBlock(block) { :constraint => false, :url => { :action => "order_blocks", :group => "top" } %> - - -<%= sortable_element 'list-left', + +<%= sortable_element 'list-left', :tag => 'div', :only => 'mypage-box', :handle => "handle", @@ -93,8 +92,8 @@ function removeBlock(block) { :constraint => false, :url => { :action => "order_blocks", :group => "left" } %> - -<%= sortable_element 'list-right', + +<%= sortable_element 'list-right', :tag => 'div', :only => 'mypage-box', :handle => "handle", @@ -103,6 +102,6 @@ function removeBlock(block) { :constraint => false, :url => { :action => "order_blocks", :group => "right" } %> - + <%= javascript_tag "updateSelect()" %> <% html_title(l(:label_my_page)) -%> -- 2.39.5