diff --git a/app/controllers/my_profile/profile_design_controller.rb b/app/controllers/my_profile/profile_design_controller.rb index 456aaec..2b3a1bd 100644 --- a/app/controllers/my_profile/profile_design_controller.rb +++ b/app/controllers/my_profile/profile_design_controller.rb @@ -9,7 +9,6 @@ class ProfileDesignController < BoxOrganizerController def protect_fixed_block block = boxes_holder.blocks.find(params[:id].gsub(/^block-/, '')) if !block.nil? && block.fixed && !current_person.is_admin? - render_access_denied end end diff --git a/app/views/box_organizer/add_block.html.erb b/app/views/box_organizer/add_block.html.erb deleted file mode 100644 index ed647ea..0000000 --- a/app/views/box_organizer/add_block.html.erb +++ /dev/null @@ -1,49 +0,0 @@ -
- <%= form_tag do %> - -

<%= _('In what area do you want to put your new block?') %>

- -
- <% @boxes.each do |box| %> - <% name = box.central? ? _('Main area') : _('Area %d') % box.position %> - <%= labelled_radio_button(name, :box_id, box.id, box.central?, { 'data-position' => box.position }) %> - <% end %> -
- - - -

<%= _('Select the type of block you want to add to your page.') %>

- -
- <% @center_block_types.each do |block| %> -
- <%= labelled_radio_button(block.description, :type, block.name) %> -
- <% end %> -
- - - -
- - <% button_bar do %> - <%= submit_button(:add, _("Add")) %> - <%= modal_close_button(_('Close')) %> - <% end %> - - <% end %> -
-- libgit2 0.21.2