diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index 8a38526..af59eb1 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -114,6 +114,9 @@ module BoxesHelper # # +box+ is always needed def block_target(box, block = nil) + # FIXME hardcoded + return '' if box.position == 1 + id = if block.nil? "end-of-box-#{box.id}" diff --git a/app/views/box_organizer/add_block.rhtml b/app/views/box_organizer/add_block.rhtml index 6e4f656..7563e09 100644 --- a/app/views/box_organizer/add_block.rhtml +++ b/app/views/box_organizer/add_block.rhtml @@ -1,8 +1,9 @@ <% form_tag do %>
<%= _('In what area do you want to put your new block?') %>
- - <%= select_tag('box_id', options_for_select(@boxes.map {|item| [ _("Area %d") % item.position, item.id]})) %> + + <%# FIXME hardcoded stuff %> + <%= select_tag('box_id', options_for_select(@boxes.select { |item| item.position != 1 }.map {|item| [ _("Area %d") % item.position, item.id]})) %><%= _('Select the type of block you want to add to your page.') %>
-- libgit2 0.21.2