Sha256: c60a78da8790da3a936999df158fddf91e98cd941ea5cc7f72aacdedeecdfeee

Contents?: true

Size: 871 Bytes

Versions: 8

Compression:

Stored size: 871 Bytes

Contents

- if EffectivePosts.submissions_enabled && EffectivePosts.submissions_require_approval && !post.approved?
  = link_to effective_posts.admin_approve_post_path(post.id), title: 'Approve' do
    %span.glyphicon.glyphicon-ok

= link_to effective_posts.edit_admin_post_path(post.id), title: 'Settings' do
  %span.glyphicon.glyphicon-cog

= link_to effective_post_path(post, (post.draft? ? {preview: true} : nil)), title: 'View', target: '_blank' do
  %span.glyphicon.glyphicon-eye-open

- if defined?(EffectiveRegions)
  = link_to effective_post_path(post, edit: true), title: 'Edit Content', 'data-no-turbolink': true, target: '_blank' do
    %span.glyphicon.glyphicon-edit

= link_to effective_posts.admin_post_path(post.id), title: 'Delete', data: { method: :delete, confirm: 'Are you sure you want to delete? This cannot be undone.' } do
  %span.glyphicon.glyphicon-trash

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_posts-0.5.6 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.5 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.4 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.3 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.2 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.1 app/views/admin/posts/_actions.html.haml
effective_posts-0.5.0 app/views/admin/posts/_actions.html.haml
effective_posts-0.4.7 app/views/admin/posts/_actions.html.haml