annotate .svn/pristine/fa/fab2fb0765f825d8bc1189c4084f5886082c476a.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

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