Sha256: eb21047eb72986097441f370ee1906b8a2e681d993b860e228b5a8d0ec5ded7a

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

- show_path = (datatable.admin_namespace? ? effective_trash.admin_trash_path(trash) : effective_trash.trash_path(trash))

- if defined?(EffectiveBootstrap)
  = dropdown(variation: :dropleft) do
    = dropdown_link_to 'View', show_path
    = dropdown_link_to 'Restore from Trash', effective_trash.restore_trash_path(trash), data: { confirm: 'Restore this item?'}
- else
  = link_to show_path, title: 'view' do
    %span.glyphicon.glyphicon-eye-open

  = link_to effective_trash.restore_trash_path(trash), title: 'Restore', data: {confirm: 'Restore this item?'} do
    %span.glyphicon.glyphicon-retweet

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_trash-0.4.5 app/views/admin/trash/_actions.html.haml
effective_trash-0.4.4 app/views/admin/trash/_actions.html.haml
effective_trash-0.4.3 app/views/admin/trash/_actions.html.haml
effective_trash-0.4.2 app/views/admin/trash/_actions.html.haml
effective_trash-0.4.1 app/views/admin/trash/_actions.html.haml
effective_trash-0.4.0 app/views/admin/trash/_actions.html.haml
effective_trash-0.3.3 app/views/admin/trash/_actions.html.haml
effective_trash-0.3.2 app/views/admin/trash/_actions.html.haml
effective_trash-0.3.1 app/views/admin/trash/_actions.html.haml