Sha256: 8d8a5b368d2cc182ac7211fea0d9c543b784b96e7218a01931a31edb49ca4186

Contents?: true

Size: 774 Bytes

Versions: 5

Compression:

Stored size: 774 Bytes

Contents

= dropdown(variation: :dropleft) do
  - if datatable.admin_namespace?
    - if EffectivePosts.submissions_enabled && EffectivePosts.submissions_require_approval && !post.approved?
      = dropdown_link_to 'Approve', effective_posts.admin_approve_post_path(post)

    = dropdown_link_to 'Edit', effective_posts.edit_admin_post_path(post)
    - if EffectivePosts.use_fullscreen_editor
      = dropdown_link_to 'Edit Content', effective_post_path(post, edit: true), title: 'Edit Content', 'data-no-turbolink': true, 'data-turbolinks': false, target: '_blank'

    = dropdown_link_to 'View', effective_post_path(post), target: '_blank'

    = dropdown_link_to "Delete", effective_posts.admin_post_path(post),
        data: { method: :delete, confirm: "Really delete #{post}?" }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_posts-1.2.0 app/views/admin/posts/_actions.html.haml
effective_posts-1.1.11 app/views/admin/posts/_actions.html.haml
effective_posts-1.1.10 app/views/admin/posts/_actions.html.haml
effective_posts-1.1.9 app/views/admin/posts/_actions.html.haml
effective_posts-1.1.8 app/views/admin/posts/_actions.html.haml