app/views/bhf/entries/form/embeds_many/_static.haml in bhf-0.4.2.2 vs app/views/bhf/entries/form/embeds_many/_static.haml in bhf-0.4.2.3

- old
+ new

@@ -1,12 +1,12 @@ = reflection_node f, field do - ref_objects = f.object.send(field.reflection.name) - %p.empty{:class => ('hide' unless ref_objects.blank?)}= t 'bhf.helpers.entry.empty', :count => 2 - %ul.relation{:class => field.macro} + %p.empty{class: ('hide' unless ref_objects.blank?)}= t 'bhf.helpers.entry.empty', count: 2 + %ul.relation{class: field.macro} - ref_objects.each do |ref_object| %li - = link_to_if field.link, ref_object.to_bhf_s, edit_bhf_entry_embed_path(field.link || 0, f.object, ref_object), :class => :quick_edit + = link_to_if field.link, ref_object.to_bhf_s, edit_bhf_entry_embed_path(field.link || 0, f.object, ref_object), class: :quick_edit - if field.link - = link_to '×'.html_safe, bhf_entry_embed_path(field.link, f.object, ref_object), :method => :delete, :class => :delete, :remote => true, :confirm => t('bhf.helpers.promts.confirm') + = link_to '×'.html_safe, bhf_entry_embed_path(field.link, f.object, ref_object), method: :delete, class: :delete, remote: true, confirm: t('bhf.helpers.promts.confirm') - if field.link - = link_to '+', new_bhf_entry_embed_path(field.link, f.object), :class => 'add_field quick_edit' + = link_to '+', new_bhf_entry_embed_path(field.link, f.object), class: 'add_field quick_edit' \ No newline at end of file