summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-30 15:41:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-30 15:41:19 +0000
commite8201c0d7e5f07848cfce02a5a44bb42100e24c2 (patch)
tree2c1e7502cc8a4739ab33d5122a152ad8f12922f0
parent4cae62d8e869718b537fccc667802550194139f3 (diff)
downloadredmine-e8201c0d7e5f07848cfce02a5a44bb42100e24c2.tar.gz
redmine-e8201c0d7e5f07848cfce02a5a44bb42100e24c2.zip
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
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
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