socialforge/app/views/my/page.html.erb

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<div class="contextual">
<%= link_to l(:label_personalize_page), :action => 'page_layout' %>
</div>
<h3><%=l(:label_my_page)%></h3>
<div id="list-top">
<% @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>
<% end if @blocks['top'] %>
</div>
<div id="list-left" class="splitcontentleft">
<% @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>
<% end if @blocks['left'] %>
</div>
<div id="list-right" class="splitcontentright">
<% @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>
<% end if @blocks['right'] %>
</div>
<%= context_menu issues_context_menu_path %>
<% html_title(l(:label_my_page)) -%>