Sha256: e21c6f5138a3a12c989dbf8907a136b97dd2045d13d31a28b0094a7a4e6756ca

Contents?: true

Size: 763 Bytes

Versions: 13

Compression:

Stored size: 763 Bytes

Contents

= dropdown(variation: :dropleft) do
  - if EffectiveResources.authorized?(self, :mark_inherited, blob)
    = dropdown_link_to 'Mark as Inherited', effective_storage.mark_inherited_admin_storage_path(blob),
      data: { method: :post, remote: true, confirm: "Mark as Inherited Permission?" }

  - if EffectiveResources.authorized?(self, :mark_public, blob)
    = dropdown_link_to 'Mark as Public', effective_storage.mark_public_admin_storage_path(blob),
      data: { method: :post, remote: true, confirm: "Mark as Public Permission?" }

  - if EffectiveResources.authorized?(self, :purge, blob)
    = dropdown_link_to 'Delete', effective_storage.purge_admin_storage_path(blob),
      data: { method: :post, remote: true, confirm: "Really delete #{blob.to_s}?" }

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_storage-0.4.6 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.5 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.4 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.3 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.2 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.1 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.4.0 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.3.2 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.3.1 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.3.0 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.2.2 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.2.1 app/views/admin/storage/_datatable_actions.html.haml
effective_storage-0.2.0 app/views/admin/storage/_datatable_actions.html.haml