Sha256: 2fca86eb1f9d9bebf802b2b8c3caefabb44ce97bb85ec83e2adeea3c3577a88b

Contents?: true

Size: 703 Bytes

Versions: 7

Compression:

Stored size: 703 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: (url || '#'), title: 'Delete', data: {method: :delete, confirm: 'Are you sure?'}}
    %span.glyphicon.glyphicon-trash

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_datatables-2.0.6 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.5 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.4 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.3 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.2 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.1 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.0.0 app/views/effective/datatables/_actions_column.html.haml