Sha256: ca90aedcd6339aec406e265ebdc080bfd918ba37f91ac8c517c35221b04421d7

Contents?: true

Size: 528 Bytes

Versions: 8

Compression:

Stored size: 528 Bytes

Contents

- Array(datatable.array_collection? ? resource : resource.send(name)).each do |resource|
  .col-resource_item
    - if edit_action && EffectiveDatatables.authorized?(controller, :edit, resource)
      = link_to resource.to_s, effective_resource.action_path(:edit, resource), title: resource.to_s
    - elsif show_action && EffectiveDatatables.authorized?(controller, :show, resource)
      = link_to resource.to_s, effective_resource.action_path(:show, resource), title: resource.to_s
    - else
      = resource.to_s.html_safe

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_datatables-4.3.14 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.13 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.12 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.11 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.10 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.9 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.8 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.3.7 app/views/effective/datatables/_resource_column.html.haml