Sha256: a715050d0de4a188ef6a09f165abba94f80bfe3a08341adbd6f050c9a471f973

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

- if show_action
  - url = (polymorphic_path([*controller_namespace, resource]) rescue nil) || (polymorphic_path(resource) rescue nil)
  - if url.present?
    %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)
  - if url.present?
    %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)
  - if url.present?
    %a{href: url, title: 'Delete', data: {method: :delete, confirm: 'Are you sure?'}}
      %span.glyphicon.glyphicon-trash

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_datatables-2.1.1 app/views/effective/datatables/_actions_column.html.haml
effective_datatables-2.1.0 app/views/effective/datatables/_actions_column.html.haml