You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

page.rhtml 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="contextual">
  2. <%= link_to l(:label_personalize_page), :action => 'page_layout' %>
  3. </div>
  4. <h2><%=l(:label_my_page)%></h2>
  5. <div id="list-top">
  6. <% @blocks['top'].each do |b|
  7. next unless MyController::BLOCKS.keys.include? b %>
  8. <div class="mypage-box">
  9. <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
  10. </div>
  11. <% end if @blocks['top'] %>
  12. </div>
  13. <div id="list-left" class="splitcontentleft">
  14. <% @blocks['left'].each do |b|
  15. next unless MyController::BLOCKS.keys.include? b %>
  16. <div class="mypage-box">
  17. <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
  18. </div>
  19. <% end if @blocks['left'] %>
  20. </div>
  21. <div id="list-right" class="splitcontentright">
  22. <% @blocks['right'].each do |b|
  23. next unless MyController::BLOCKS.keys.include? b %>
  24. <div class="mypage-box">
  25. <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
  26. </div>
  27. <% end if @blocks['right'] %>
  28. </div>
  29. <% content_for :header_tags do %>
  30. <%= javascript_include_tag 'context_menu' %>
  31. <%= stylesheet_link_tag 'context_menu' %>
  32. <% end %>
  33. <div id="context-menu" style="display: none;"></div>
  34. <%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>
  35. <% html_title(l(:label_my_page)) -%>