Sha256: 98675e96f314860d822d69c36ed8fcd6fe807dc46b3ded849b5a89d8a67a2428

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

= 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, :crowdblog_short)
  td.span1
    - if current_user.is_publisher?
      = link_to 'Publish', '#', :class => "btn btn-small publish #{(post.published? ? 'btn-success' : 'btn-danger')}"
  td.span1
    = link_to 'Review', '#', :class => "btn btn-small review #{(post.ready_for_review ? 'btn-warning' : '')}"
  td.span1
    = link_to 'Delete', crowdblog.post_path(post), :method => :delete, :confirm => 'Are you sure?', :class => "btn btn-small"
  td.span1
    = link_to 'Edit', crowdblog.edit_post_path(post), :class => "btn btn-small"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crowdblog-0.1.3 app/views/crowdblog/posts/_post.html.slim
crowdblog-0.1.2 app/views/crowdblog/posts/_post.html.slim
crowdblog-0.1.1 app/views/crowdblog/posts/_post.html.slim
crowdblog-0.1.0 app/views/crowdblog/posts/_post.html.slim