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
This commit is contained in:
parent
08ff4dfb21
commit
73510949ba
|
@ -5,7 +5,8 @@
|
||||||
<h2><%=l(:label_my_page)%></h2>
|
<h2><%=l(:label_my_page)%></h2>
|
||||||
|
|
||||||
<div id="list-top">
|
<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">
|
<div class="mypage-box">
|
||||||
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="list-left" class="splitcontentleft">
|
<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">
|
<div class="mypage-box">
|
||||||
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,7 +23,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="list-right" class="splitcontentright">
|
<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">
|
<div class="mypage-box">
|
||||||
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue