Sha256: 4981882b5adb40202657eb7a9b620bc2200a5e68f8f74c63895484db3055acd3

Contents?: true

Size: 988 Bytes

Versions: 46

Compression:

Stored size: 988 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-moderation' do %>
  <%= render 'thredded/posts_common/actions', post: post %>
  <%= render 'thredded/posts_common/header_with_user_and_topic',
             post:           post,
             post_user_link: if post.user
                               link_to(post.user.thredded_display_name, user_moderation_path(post.user.id))
                             else
                               content_tag :em, t('thredded.null_user_name')
                             end
  %>
  <%= content || render('thredded/posts/content', post: post) %>
  <% if post.blocked? %>
    <p class="thredded--alert thredded--alert-danger">
      <%= render 'thredded/shared/content_moderation_blocked_state', moderation_record: post.last_moderation_record %>
    </p>
  <% end %>
  <%= render 'post_moderation_actions', post: post %>
<% end %>

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
thredded-0.12.3 app/views/thredded/moderation/_post.html.erb
thredded-0.12.2 app/views/thredded/moderation/_post.html.erb
thredded-0.12.1 app/views/thredded/moderation/_post.html.erb
thredded-0.12.0 app/views/thredded/moderation/_post.html.erb
thredded-0.11.1 app/views/thredded/moderation/_post.html.erb
thredded-0.11.0 app/views/thredded/moderation/_post.html.erb