From f675e58dd98c7441618891a697486257f30e342d Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Tue, 11 Mar 2014 16:27:00 +0100 Subject: [PATCH] Renders menu after heading --- .../_block_textilizable.html.erb | 93 ++++++++++--------- .../_textilizable.html.erb | 3 + 2 files changed, 51 insertions(+), 45 deletions(-) diff --git a/app/views/my_projects_overviews/_block_textilizable.html.erb b/app/views/my_projects_overviews/_block_textilizable.html.erb index ccc799255d..e90b8ad257 100644 --- a/app/views/my_projects_overviews/_block_textilizable.html.erb +++ b/app/views/my_projects_overviews/_block_textilizable.html.erb @@ -20,53 +20,56 @@ See doc/COPYRIGHT.md for more details.
-
- <%= link_to_remote l(:button_delete), { - :confirm => l(:label_confirm_delete), - :url => { :action => "remove_block", :block => block_name }, - :complete => "removeBlock('block_#{block_name.dasherize}')" }, - :class => "icon icon-delete" - %> -
+ <% content_for block_name do %> +
+ <%= link_to_remote l(:button_delete), { + :confirm => l(:label_confirm_delete), + :url => { :action => "remove_block", :block => block_name }, + :complete => "removeBlock('block_#{block_name.dasherize}')" }, + :class => "icon icon-delete" + %> +
-
- diff --git a/app/views/my_projects_overviews/_textilizable.html.erb b/app/views/my_projects_overviews/_textilizable.html.erb index 2cb79931b1..815c15ab3b 100644 --- a/app/views/my_projects_overviews/_textilizable.html.erb +++ b/app/views/my_projects_overviews/_textilizable.html.erb @@ -19,4 +19,7 @@ See doc/COPYRIGHT.md for more details. ++#%>

<%= block_title || l(:label_custom_element) %>

+<% if defined? block_name %> + <%= content_for block_name %> +<% end %> <%= textilizable(textile, :object => overview) %>