From e8201c0d7e5f07848cfce02a5a44bb42100e24c2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 30 Jan 2016 15:41:19 +0000 Subject: Add class to contextual edit button that relates to heading on wiki pages (). Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@15136 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 12dcceae6..483f88704 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -889,7 +889,7 @@ module ApplicationHelper content_tag('div', link_to('', options[:edit_section_links].merge(:section => @current_section), :class => 'icon-only icon-edit'), - :class => 'contextual', + :class => "contextual heading-#{$2}", :title => l(:button_edit_section), :id => "section-#{@current_section}") + heading.html_safe else -- cgit v1.2.3