Project

General

Profile

Patch #21593 ยป 0001-Add-class-to-contextual-edit-button-that-relates-to-.patch

Felix Gliesche, 2015-12-23 11:04

View differences:

app/helpers/application_helper.rb
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-1/1)