From 8055d08477af0c6791a8687cefa8c24a97b1d341 Mon Sep 17 00:00:00 2001 From: Mike Sanders Date: Fri, 6 Feb 2026 15:02:54 +0100 Subject: [PATCH] enable overwriting form/show page field names --- app/helpers/materials_helper.rb | 1 + 1 file changed, 1 insertion(+) 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 << '