Sha256: 4c30b4925f045242a6426394315eef8557e0721ea7a7f8928f591819c16d6cfb

Contents?: true

Size: 768 Bytes

Versions: 105

Compression:

Stored size: 768 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.to_s.html_safe

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
effective_datatables-4.25.3 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.25.2 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.25.1 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.25.0 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.24.2 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.24.1 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.24.0 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.23.0 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.22.3 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.22.2 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.22.1 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.22.0 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.21.1 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.21.0 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.6 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.5 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.4 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.3 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.2 app/views/effective/datatables/_resource_column.html.haml
effective_datatables-4.20.1 app/views/effective/datatables/_resource_column.html.haml