Commit 73510949 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

check that block is defined before rendering it (my/page)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@243 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 08ff4dfb
......@@ -5,7 +5,8 @@
<h2><%=l(:label_my_page)%></h2>
<div id="list-top">
<% @blocks['top'].each do |b| %>
<% @blocks['top'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<div class="mypage-box">
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
</div>
......@@ -13,7 +14,8 @@
</div>
<div id="list-left" class="splitcontentleft">
<% @blocks['left'].each do |b| %>
<% @blocks['left'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<div class="mypage-box">
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
</div>
......@@ -21,7 +23,8 @@
</div>
<div id="list-right" class="splitcontentright">
<% @blocks['right'].each do |b| %>
<% @blocks['right'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<div class="mypage-box">
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment