Sha256: d8829a685d321ada1c4f85ebe7f420f6d5baef5b4bb0f56c0c8fa7b408b0c8fc

Contents?: true

Size: 539 Bytes

Versions: 10

Compression:

Stored size: 539 Bytes

Contents

- route_builder = @context&.route_builder || datatable.class::ROUTE_BUILDER
= dropdown(variation: :dropleft, btn_class: btn_class) do
  - authorized_resource_actions(route_builder, resource, for_action: action_name).select{ |x| x.show_in_datatable }.each do |a|
    - path = a.path_helper.is_a?(Proc) ? a.path_helper.call(resource) : send(a.path_helper, resource.id)
    - data = a.turbo_frame.present? ? { turbo: true, turbo_frame: a.turbo_frame } : {}
    = dropdown_link_to resource_form_action_label(resource, a.sym), path, data: data

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.44 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.43.a app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.43 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.42 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.41 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.40 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.39 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.38 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.37 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.36 app/views/effective/resource/_actions_dropleft.html.haml