diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 09:51:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 09:51:30 +0000 |
commit | 29edbd605b12b0153f9197383838870fe8f7605f (patch) | |
tree | 9602d5d701819bb6857d4b3f025463a47b7f01da /app/views/my | |
parent | 2b2eeb019243de6758d6cd96bf1c7c92abcd39ae (diff) | |
download | redmine-29edbd605b12b0153f9197383838870fe8f7605f.tar.gz redmine-29edbd605b12b0153f9197383838870fe8f7605f.zip |
Rails3: view: html_safe for my/page_layout.html.erb
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8452 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r-- | app/views/my/page_layout.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/my/page_layout.html.erb b/app/views/my/page_layout.html.erb index 419cfee30..67edb9f28 100644 --- a/app/views/my/page_layout.html.erb +++ b/app/views/my/page_layout.html.erb @@ -37,7 +37,9 @@ function removeBlock(block) { <div class="contextual"> <% form_tag({:action => "add_block"}, :id => "block-form") do %> <%= label_tag('block-select', l(:label_my_page_block)) %>: -<%= select_tag 'block', "<option></option>" + options_for_select(@block_options), :id => "block-select" %> +<%= select_tag 'block', + "<option></option>".html_safe + options_for_select(@block_options), + :id => "block-select" %> <%= link_to_remote l(:button_add), {:url => { :action => "add_block" }, :with => "Form.serialize('block-form')", |