view app/views/my/page.html.erb @ 1170:bfd49444c276 feature_523

Close obsolete branch feature_523
author Chris Cannam
date Wed, 17 Oct 2012 16:48:02 +0100
parents 5e80956cc792
children bb32da3bea34 7a848374757b
line wrap: on
line source
<div class="contextual">
    <%= link_to l(:label_personalize_page), :action => 'page_layout' %>
    <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
</div>

<h2><%=l(:label_my_page)%></h2>

<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 :controller => 'issues', :action => 'context_menu' %>

<% html_title(l(:label_my_page)) -%>