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-1.1.0 app/views/thredded/moderation/_post.html.erb
thredded-1.0.1 app/views/thredded/moderation/_post.html.erb
thredded-1.0.0 app/views/thredded/moderation/_post.html.erb
thredded-0.16.16 app/views/thredded/moderation/_post.html.erb
thredded-0.16.15 app/views/thredded/moderation/_post.html.erb
thredded-0.16.14 app/views/thredded/moderation/_post.html.erb
thredded-0.16.13 app/views/thredded/moderation/_post.html.erb
thredded-0.16.12 app/views/thredded/moderation/_post.html.erb
thredded-0.16.11 app/views/thredded/moderation/_post.html.erb
thredded-0.16.10 app/views/thredded/moderation/_post.html.erb
thredded-0.16.9 app/views/thredded/moderation/_post.html.erb
thredded-0.16.8 app/views/thredded/moderation/_post.html.erb
thredded-0.16.7 app/views/thredded/moderation/_post.html.erb
thredded-0.16.6 app/views/thredded/moderation/_post.html.erb
thredded-0.16.5 app/views/thredded/moderation/_post.html.erb
thredded-0.16.4 app/views/thredded/moderation/_post.html.erb
thredded-0.16.3 app/views/thredded/moderation/_post.html.erb
thredded-0.16.1 app/views/thredded/moderation/_post.html.erb
thredded-0.16.0 app/views/thredded/moderation/_post.html.erb
thredded-0.15.5 app/views/thredded/moderation/_post.html.erb