mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
add empty line after guard clause to lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20238 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -56,6 +56,7 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder
|
||||
# Returns a label tag for the given field
|
||||
def label_for_field(field, options = {})
|
||||
return ''.html_safe if options.delete(:no_label)
|
||||
|
||||
text = options[:label].is_a?(Symbol) ? l(options[:label]) : options[:label]
|
||||
text ||= @object.class.human_attribute_name(field)
|
||||
text += @template.content_tag("span", " *", :class => "required") if options.delete(:required)
|
||||
|
||||
Reference in New Issue
Block a user