Sha256: 73a5b189ca4e5cf6eaa2bce2588780d692e0e32e57f1ecbcc4766c824e748ab6
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
= dropdown(variation: :dropleft) do - if EffectivePages.authorized?(self, :edit, page) = dropdown_link_to 'Edit', effective_pages.edit_admin_page_path(page) = dropdown_link_to 'Edit Content', effective_regions.edit_path(page), 'data-no-turbolink': true, 'data-turbolinks': false, target: '_blank' - if EffectivePages.authorized?(self, :show, page) = dropdown_link_to 'View', effective_pages.page_path(page), 'data-no-turbolink': true, 'data-turbolinks': false, target: '_blank' - if EffectivePages.authorized?(self, :destroy, page) = dropdown_link_to "Delete #{page}", effective_pages.admin_page_path(page), data: { method: :delete, confirm: "Really delete #{page}?" }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_pages-2.1.0 | app/views/admin/pages/_actions.html.haml |
effective_pages-2.0.9 | app/views/admin/pages/_actions.html.haml |