Sha256: 89514f131ab1f398f3bc4c1ec5b87d7d2c47c70ed91c721e91bb9c9fb654a75f

Contents?: true

Size: 755 Bytes

Versions: 10

Compression:

Stored size: 755 Bytes

Contents

- if show_action
  - url = (polymorphic_path([*controller_namespace, resource]) rescue nil) || (polymorphic_path(resource) rescue nil)
  %a{href: (url || '#'), title: 'Show'}
    %span.glyphicon.glyphicon-eye-open

- if edit_action
  - url = (edit_polymorphic_path([*controller_namespace, resource]) rescue nil) || (edit_polymorphic_path(resource) rescue nil)
  %a{href: (url || '#'), title: 'Edit'}
    %span.glyphicon.glyphicon-edit

- if destroy_action
  - url = (polymorphic_path([*controller_namespace, resource]) rescue nil) || (polymorphic_path(resource) rescue nil)
  %a{href: (polymorphic_path([*controller_namespace, resource]) rescue '#'), title: 'Delete', data: {method: :delete, confirm: 'Are you sure?'}}
    %span.glyphicon.glyphicon-trash

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
effective_datatables-1.8.3 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.8.2 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.8.1 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.8.0 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.7.1 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.7.0 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.6.3 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.6.2 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.6.1 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-1.6.0 app/views/effective/datatables/_actions_column.html.haml