From ab6404dd677b12942c324ad96ec5664d1fab80c3 Mon Sep 17 00:00:00 2001 From: Felix Gliesche Date: Wed, 23 Dec 2015 10:48:52 +0100 Subject: [PATCH] Add class to contextual edit button that relates to heading on wiki pages --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f152e21..ec874ac 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -888,7 +888,7 @@ module ApplicationHelper if @current_section > 1 content_tag('div', link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)), - :class => 'contextual', + :class => "contextual heading-#{$2}", :title => l(:button_edit_section), :id => "section-#{@current_section}") + heading.html_safe else -- 1.9.3 (Apple Git-50)