diff --git a/app/helpers/materials_helper.rb b/app/helpers/materials_helper.rb index 52e170db9..57610d869 100644 --- a/app/helpers/materials_helper.rb +++ b/app/helpers/materials_helper.rb @@ -97,6 +97,7 @@ def display_attribute(resource, attribute, show_label: true, title: nil, markdow end string = "
" unless value.blank? || value.try(:strip) == 'License Not Specified' + title ||= I18n.t("activerecord.attributes.#{resource.class.name.underscore}.#{attribute}", default: nil) string << " #{title || resource.class.human_attribute_name(attribute)}: " if show_label if list string << '