Mercurial > hg > soundsoftware-site
comparison .svn/pristine/fa/fab2fb0765f825d8bc1189c4084f5886082c476a.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
1 <div class="contextual"> | |
2 <% if @block_options.present? %> | |
3 <%= form_tag({:action => "add_block"}, :id => "block-form") do %> | |
4 <%= label_tag('block-select', l(:label_my_page_block)) %>: | |
5 <%= select_tag 'block', | |
6 content_tag('option') + options_for_select(@block_options), | |
7 :id => "block-select" %> | |
8 <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %> | |
9 <% end %> | |
10 <% end %> | |
11 <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %> | |
12 </div> | |
13 | |
14 <h2><%=l(:label_my_page)%></h2> | |
15 | |
16 <div id="list-top" class="block-receiver"> | |
17 <% @blocks['top'].each do |b| | |
18 next unless MyController::BLOCKS.keys.include? b %> | |
19 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> | |
20 <% end if @blocks['top'] %> | |
21 </div> | |
22 | |
23 <div id="list-left" class="splitcontentleft block-receiver"> | |
24 <% @blocks['left'].each do |b| | |
25 next unless MyController::BLOCKS.keys.include? b %> | |
26 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> | |
27 <% end if @blocks['left'] %> | |
28 </div> | |
29 | |
30 <div id="list-right" class="splitcontentright block-receiver"> | |
31 <% @blocks['right'].each do |b| | |
32 next unless MyController::BLOCKS.keys.include? b %> | |
33 <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> | |
34 <% end if @blocks['right'] %> | |
35 </div> | |
36 | |
37 <%= javascript_tag "initMyPageSortable('top', '#{ escape_javascript url_for(:action => "order_blocks", :group => "top") }');" %> | |
38 <%= javascript_tag "initMyPageSortable('left', '#{ escape_javascript url_for(:action => "order_blocks", :group => "left") }');" %> | |
39 <%= javascript_tag "initMyPageSortable('right', '#{ escape_javascript url_for(:action => "order_blocks", :group => "right") }');" %> | |
40 | |
41 <% html_title(l(:label_my_page)) -%> |