Selaa lähdekoodia

cleanup: rubocop: fix Layout/AlignArguments in app/helpers/custom_fields_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18991 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 vuotta sitten
vanhempi
commit
d40ed8bfa1
1 muutettua tiedostoa jossa 9 lisäystä ja 8 poistoa
  1. 9
    8
      app/helpers/custom_fields_helper.rb

+ 9
- 8
app/helpers/custom_fields_helper.rb Näytä tiedosto

@@ -88,13 +88,13 @@ module CustomFieldsHelper
:issues_url => auto_complete_issues_path(:project_id => custom_value.customized.project, :q => '')
} if custom_value.customized && custom_value.customized.project
end
custom_value.custom_field.format.edit_tag self,
custom_value.custom_field.format.edit_tag(
self,
custom_field_tag_id(prefix, custom_value.custom_field),
custom_field_tag_name(prefix, custom_value.custom_field),
custom_value,
:class => css,
:data => data
:data => data)
end

# Return custom field name tag
@@ -109,10 +109,10 @@ module CustomFieldsHelper
required = options[:required] || custom_value.custom_field.is_required?
for_tag_id = options.fetch(:for_tag_id, "#{name}_custom_field_values_#{custom_value.custom_field.id}")
content = custom_field_name_tag custom_value.custom_field
content_tag "label", content +
content_tag(
"label", content +
(required ? " <span class=\"required\">*</span>".html_safe : ""),
:for => for_tag_id
:for => for_tag_id)
end

# Return custom field tag with its label tag
@@ -128,13 +128,14 @@ module CustomFieldsHelper

# Returns the custom field tag for when bulk editing objects
def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='')
custom_field.format.bulk_edit_tag self,
custom_field.format.bulk_edit_tag(
self,
custom_field_tag_id(prefix, custom_field),
custom_field_tag_name(prefix, custom_field),
custom_field,
objects,
value,
:class => "#{custom_field.field_format}_cf"
:class => "#{custom_field.field_format}_cf")
end

# Returns custom field value tag

Loading…
Peruuta
Tallenna