app/helpers/para/tree_helper.rb in para-0.6.9 vs app/helpers/para/tree_helper.rb in para-0.7.0

- old
+ new

@@ -7,21 +7,22 @@ def max_depth_for(model) model.max_depth || Para.config.default_tree_max_depth end def actions(resource) - content_tag(:div, class: 'pull-right btn-group') do - edit_button(resource) + delete_button(resource) - end + edit_button(resource) + delete_button(resource) end def edit_button(resource) link_to( component.relation_path( resource, action: :edit, return_to: view.request.fullpath ), - class: 'btn btn-primary' + class: 'btn btn-sm btn-icon-primary btn-shadow hint--left', + aria: { + label: ::I18n.t('para.shared.edit') + } ) do content_tag(:i, '', class: 'fa fa-pencil') end end @@ -30,12 +31,15 @@ component.relation_path(resource), method: :delete, data: { confirm: ::I18n.t('para.list.delete_confirmation') }, - class: 'btn btn-danger' + class: 'btn btn-sm btn-icon-danger btn-shadow hint--left', + aria: { + label: ::I18n.t('para.shared.destroy') + } ) do - content_tag(:i, '', class: 'fa fa-trash') + content_tag(:i, '', class: 'fa fa-times') end end end end