Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/helpers/materials_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def display_attribute(resource, attribute, show_label: true, title: nil, markdow
end
string = "<p class=\"#{attribute}#{show_label ? ' no-spacing' : ''}\">"
unless value.blank? || value.try(:strip) == 'License Not Specified'
title ||= I18n.t("activerecord.attributes.#{resource.class.name.underscore}.#{attribute}", default: nil)
string << "<strong class='text-primary'> #{title || resource.class.human_attribute_name(attribute)}: </strong>" if show_label
if list
string << '<ul>'
Expand Down