diff app/views/my/page_layout.html.erb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents c6c2cbd0afee
children 433d4f72a19b
line wrap: on
line diff
--- a/app/views/my/page_layout.html.erb	Fri Feb 24 18:36:29 2012 +0000
+++ b/app/views/my/page_layout.html.erb	Fri Feb 24 19:09:32 2012 +0000
@@ -4,10 +4,10 @@
     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'})
+
+  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'})
 }
 
 function updateSelect() {
@@ -53,24 +53,24 @@
 <h2><%=l(:label_my_page)%></h2>
 
 <div id="list-top" class="block-receiver">
-	<% @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['top'].each do |b|
+     next unless MyController::BLOCKS.keys.include? b %>
+  <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
+  <% end if @blocks['top'] %>
 </div>
 
 <div id="list-left" class="splitcontentleft block-receiver">
-	<% @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['left'].each do |b|
+     next unless MyController::BLOCKS.keys.include? b %>
+  <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
+  <% end if @blocks['left'] %>
 </div>
 
 <div id="list-right" class="splitcontentright block-receiver">
-	<% @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'] %>
+  <% @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'] %>
 </div>
 
 <%= sortable_element 'list-top',
@@ -82,9 +82,8 @@
       :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 @@
       :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 @@
       :constraint => false,
       :url => { :action => "order_blocks", :group => "right" }
        %>
-      
+
 <%= javascript_tag "updateSelect()" %>
 <% html_title(l(:label_my_page)) -%>