Sha256: d5392333aefc8c8895e282d8959523b4bbf5675553cc8d32474e6a25bd54b508

Contents?: true

Size: 829 Bytes

Versions: 4

Compression:

Stored size: 829 Bytes

Contents

<% post, content = post_and_content if local_assigns.key?(:post_and_content) %>
<%= content_tag :article, id: dom_id(post), class: "thredded--post thredded--#{post.read_state}--post" do %>
  <%= render 'thredded/posts_common/actions', post: post %>
  <%= render 'thredded/posts_common/header', post: post %>
  <%= content || render('thredded/posts/content', post: post) %>
  <% if post.pending_moderation? && !Thredded.content_visible_while_pending_moderation %>
    <p class="thredded--alert thredded--alert-warning"><%= t 'thredded.posts.pending_moderation_notice' %></p>
  <% elsif post.blocked? && post.can_moderate? %>
    <p class="thredded--alert thredded--alert-danger">
      <%= render 'thredded/shared/content_moderation_blocked_state', moderation_record: post.last_moderation_record %>
    </p>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.12.0 app/views/thredded/posts/_post.html.erb
thredded-0.11.1 app/views/thredded/posts/_post.html.erb
thredded-0.11.0 app/views/thredded/posts/_post.html.erb
thredded-0.10.1 app/views/thredded/posts/_post.html.erb