app/helpers/decidim/admin/attributes_display_helper.rb in decidim-admin-0.18.1 vs app/helpers/decidim/admin/attributes_display_helper.rb in decidim-admin-0.19.0

- old
+ new

@@ -50,10 +50,11 @@ end # Holds the logic to render a label for a given attribute. def display_label(record, attr, locale = nil) return content_tag(:dt, record.class.human_attribute_name(attr)) unless locale + content_tag(:dt, record.class.human_attribute_name(attr) + " (#{locale})") end private @@ -68,9 +69,10 @@ content_tag(:dd, record.send(attr).try(:html_safe)) end def display_available_locales(record) return record.available_locales if record.respond_to?(:available_locales) + record.organization.available_locales if record.respond_to?(:organization) current_organization.available_locales if respond_to?(:current_organization) end end end