Sha256: 71690a628c7d2affc64c36030174c838436b1bd42b7fac4f48e776c45781dc48

Contents?: true

Size: 763 Bytes

Versions: 4

Compression:

Stored size: 763 Bytes

Contents

- Array(local_assigns[:resource_name] ? resource.public_send(resource_name) : resource).each do |resource|
  - resource_to_s = ((local_assigns[:resource_to_s] && resource) ? resource.public_send(resource_to_s) : resource.to_s)

  - if resource_to_s.present?
    .col-resource_item
      - if edit_action && EffectiveDatatables.authorized?(controller, :edit, resource) && (path = effective_resource.action_path(:edit, resource)).present?
        = link_to resource_to_s, path, title: resource_to_s
      - elsif show_action && EffectiveDatatables.authorized?(controller, :show, resource) && (path = effective_resource.action_path(:show, resource)).present?
        = link_to resource_to_s, path, title: resource_to_s
      - else
        = resource_to_s.html_safe

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_datatables-4.7.7 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.7.6 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.7.5 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.7.4 app/views/effective/datatables/_resource_column.html.haml