Sha256: a5e26ac28116aa3efd6e15e5140248d75acf80a32f34b5846dafe9bf3e4417be

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

= cache [:admin, post] do
  = content_tag_for :tr, post, :"data-post-id" => post.id, :"data-state" => post.state, :"data-ready-for-review" => post.ready_for_review do
    td= post.title
    td= post.author_email
    td.span2.published-at = post.published_at.try(:to_s, :miniblog_short)
    td.span1
      - if current_user.is_publisher?
        = link_to 'Publish', '#', :class => "btn btn-small publish-btn btn-danger #{(post.published? ? 'draft' : 'publish')}"
    td.span1
      .btn-group.states
        button.btn.btn-small.draft Drafted
        button.btn.btn-small.finish Finished
        - if !current_user.is_publisher?
          button.btn.btn-small.disabled.publish-status
        - if current_user.is_publisher?
          button.btn.btn-small.review Reviewed
    td.span1
      = link_to 'Delete', miniblog.admin_post_path(post), :method => :delete, :data => { :confirm => 'Are you sure?' }, :class => "btn btn-small"
    td.span1
      = link_to 'Edit', miniblog.edit_admin_post_path(post), :class => "btn btn-small"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miniblog-1.0.2 app/views/miniblog/admin/posts/_post.html.slim
miniblog-1.0.1 app/views/miniblog/admin/posts/_post.html.slim
miniblog-1.0.0 app/views/miniblog/admin/posts/_post.html.slim
miniblog-1.0.0.beta app/views/miniblog/admin/posts/_post.html.slim