annotate app/views/my/page_layout.html.erb @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 433d4f72a19b
children
rev   line source
Chris@0 1 <div class="contextual">
Chris@1115 2 <% if @block_options.present? %>
Chris@1115 3 <%= form_tag({:action => "add_block"}, :id => "block-form") do %>
Chris@1115 4 <%= label_tag('block-select', l(:label_my_page_block)) %>:
Chris@1115 5 <%= select_tag 'block',
Chris@1115 6 content_tag('option') + options_for_select(@block_options),
Chris@1115 7 :id => "block-select" %>
Chris@1115 8 <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %>
Chris@1115 9 <% end %>
Chris@0 10 <% end %>
Chris@0 11 <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
Chris@0 12 </div>
Chris@0 13
Chris@0 14 <h2><%=l(:label_my_page)%></h2>
Chris@0 15
Chris@0 16 <div id="list-top" class="block-receiver">
Chris@909 17 <% @blocks['top'].each do |b|
Chris@909 18 next unless MyController::BLOCKS.keys.include? b %>
Chris@909 19 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
Chris@909 20 <% end if @blocks['top'] %>
Chris@0 21 </div>
Chris@0 22
Chris@0 23 <div id="list-left" class="splitcontentleft block-receiver">
Chris@909 24 <% @blocks['left'].each do |b|
Chris@909 25 next unless MyController::BLOCKS.keys.include? b %>
Chris@909 26 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
Chris@909 27 <% end if @blocks['left'] %>
Chris@0 28 </div>
Chris@0 29
Chris@0 30 <div id="list-right" class="splitcontentright block-receiver">
Chris@909 31 <% @blocks['right'].each do |b|
Chris@909 32 next unless MyController::BLOCKS.keys.include? b %>
Chris@909 33 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
Chris@909 34 <% end if @blocks['right'] %>
Chris@0 35 </div>
Chris@0 36
Chris@1115 37 <%= javascript_tag "initMyPageSortable('top', '#{ escape_javascript url_for(:action => "order_blocks", :group => "top") }');" %>
Chris@1115 38 <%= javascript_tag "initMyPageSortable('left', '#{ escape_javascript url_for(:action => "order_blocks", :group => "left") }');" %>
Chris@1115 39 <%= javascript_tag "initMyPageSortable('right', '#{ escape_javascript url_for(:action => "order_blocks", :group => "right") }');" %>
Chris@909 40
Chris@0 41 <% html_title(l(:label_my_page)) -%>