diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 10:10:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 10:10:31 +0000 |
commit | 8b86d5158e50d27de68a3c69c12b06e1af0deb52 (patch) | |
tree | 724ac0a770438aa579d94a77b6855361a329274c /app/views/my | |
parent | 6ef3ecc030cfc744244bb15db2f2ef0eb46ed439 (diff) | |
download | redmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.tar.gz redmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.zip |
Moves blocks definition to Redmine::MyPage.
git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r-- | app/views/my/page_layout.html.erb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/views/my/page_layout.html.erb b/app/views/my/page_layout.html.erb index 70bf835fb..690aa25a8 100644 --- a/app/views/my/page_layout.html.erb +++ b/app/views/my/page_layout.html.erb @@ -1,12 +1,9 @@ <div class="contextual"> -<% if @block_options.present? %> - <%= form_tag({:action => "add_block"}, :id => "block-form") do %> + +<%= form_tag({:action => "add_block"}, :id => "block-form") do %> <%= label_tag('block-select', l(:label_my_page_block)) %>: - <%= select_tag 'block', - content_tag('option') + options_for_select(@block_options), - :id => "block-select" %> + <%= block_select_tag(@user) %> <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %> - <% end %> <% end %> <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %> </div> |