Sha256: b0794b15d2f8bc223cad45b0730a1e6532113ad1da90c04dcb61f725640b909a

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

:ruby
  scope = options.delete(:scope)
  data_attributes = {
    'acts-as-list-item':                true,
    'acts-as-list-item-uid':            resource.to_param,
    'acts-as-list-item-on-drop-target': url_for([:reposition, resource])
  }
  data_attributes['acts-as-list-item-scope'] = "#{scope}-#{resource.send(scope)}" if scope.present?

%span.btn.btn-xs.btn-default.acts-as-list-item{ data: data_attributes }
  %span.glyphicon.glyphicon-sort.fas.fa-sort

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rao-component-0.0.10.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.9.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.8.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.7.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.6.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.5.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.4.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.3.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml
rao-component-0.0.2.pre app/views/rao/component/table/body_cells/_acts_as_list.html.haml