mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
code cleanup: rubocop: fix Layout/IndentAssignment in app/helpers/issues_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18479 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -248,7 +248,6 @@ Layout/ExtraSpacing:
|
|||||||
Layout/IndentAssignment:
|
Layout/IndentAssignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/application_helper.rb'
|
- 'app/helpers/application_helper.rb'
|
||||||
- 'app/helpers/issues_helper.rb'
|
|
||||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
|
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
|
||||||
|
|
||||||
|
|||||||
@@ -264,16 +264,14 @@ module IssuesHelper
|
|||||||
def render_full_width_custom_fields_rows(issue)
|
def render_full_width_custom_fields_rows(issue)
|
||||||
values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
|
values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
|
||||||
return if values.empty?
|
return if values.empty?
|
||||||
|
|
||||||
s = ''.html_safe
|
s = ''.html_safe
|
||||||
values.each_with_index do |value, i|
|
values.each_with_index do |value, i|
|
||||||
attr_value_tag = custom_field_value_tag(value)
|
attr_value_tag = custom_field_value_tag(value)
|
||||||
next if attr_value_tag.blank?
|
next if attr_value_tag.blank?
|
||||||
|
|
||||||
content =
|
content =
|
||||||
content_tag('hr') +
|
content_tag('hr') +
|
||||||
content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +
|
content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +
|
||||||
content_tag('div', attr_value_tag, class: 'value')
|
content_tag('div', attr_value_tag, class: 'value')
|
||||||
s << content_tag('div', content, class: "#{value.custom_field.css_classes} attribute")
|
s << content_tag('div', content, class: "#{value.custom_field.css_classes} attribute")
|
||||||
end
|
end
|
||||||
s
|
s
|
||||||
|
|||||||
Reference in New Issue
Block a user