Browse Source

cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelper#parse_sections

git-svn-id: http://svn.redmine.org/redmine/trunk@18903 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
14e5c12f97
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      app/helpers/application_helper.rb

+ 7
- 3
app/helpers/application_helper.rb View File

@@ -1193,9 +1193,13 @@ module ApplicationHelper
heading, level = $1, $2
@current_section += 1
if @current_section > 1
content_tag('div',
link_to(l(:button_edit_section), options[:edit_section_links].merge(:section => @current_section),
:class => 'icon-only icon-edit'),
content_tag(
'div',
link_to(
l(:button_edit_section),
options[:edit_section_links].merge(
:section => @current_section),
:class => 'icon-only icon-edit'),
:class => "contextual heading-#{level}",
:title => l(:button_edit_section),
:id => "section-#{@current_section}") + heading.html_safe

Loading…
Cancel
Save