We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d1946 commit 7cd6c2bCopy full SHA for 7cd6c2b
1 file changed
app/helpers/materials_helper.rb
@@ -90,7 +90,7 @@ def display_attribute(resource, attribute, show_label: true, title: nil, markdow
90
unless value.blank? || value.try(:strip) == 'License Not Specified'
91
concat content_tag(:strong, "#{title || resource.class.human_attribute_name(attribute)}: ", class: 'text-primary') if show_label
92
if list
93
- concat content_tag(:ul, value.map { |v| content_tag(:li, v) })
+ concat content_tag(:ul) { value.each { |v| concat(content_tag(:li, v)) } }
94
elsif expandable
95
height_limit = expandable.is_a?(Numeric) ? expandable : nil
96
concat content_tag(:div, value.to_s, class: 'tess-expandable', 'data-height-limit': height_limit ? height_limit : nil)
0 commit comments