Sha256: 9b930b49940b2b33f961f4577678c573149a6c0a551cf79d08cf80ffd50bfcd0

Contents?: true

Size: 863 Bytes

Versions: 19

Compression:

Stored size: 863 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, actions: local_assigns[:actions] %>
  <%= 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

19 entries across 19 versions & 2 rubygems

Version Path
threddedDANIEL-0.14.5 app/views/thredded/posts/_post.html.erb
thredded-0.14.4 app/views/thredded/posts/_post.html.erb
thredded-0.14.3 app/views/thredded/posts/_post.html.erb
thredded-0.14.2 app/views/thredded/posts/_post.html.erb
thredded-0.14.1 app/views/thredded/posts/_post.html.erb
thredded-0.14.0 app/views/thredded/posts/_post.html.erb
thredded-0.13.8 app/views/thredded/posts/_post.html.erb
thredded-0.13.7 app/views/thredded/posts/_post.html.erb
thredded-0.13.6 app/views/thredded/posts/_post.html.erb
thredded-0.13.5 app/views/thredded/posts/_post.html.erb
thredded-0.13.4 app/views/thredded/posts/_post.html.erb
thredded-0.13.3 app/views/thredded/posts/_post.html.erb
thredded-0.13.2 app/views/thredded/posts/_post.html.erb
thredded-0.13.1 app/views/thredded/posts/_post.html.erb
thredded-0.13.0 app/views/thredded/posts/_post.html.erb
thredded-0.12.4 app/views/thredded/posts/_post.html.erb
thredded-0.12.3 app/views/thredded/posts/_post.html.erb
thredded-0.12.2 app/views/thredded/posts/_post.html.erb
thredded-0.12.1 app/views/thredded/posts/_post.html.erb