% topic = @posts.topic %> <% content_for :thredded_page_title, topic.title %> <% content_for :thredded_page_id, 'thredded--topic-show' %> <% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %> <%= thredded_page do %> <%= content_tag :section, id: dom_id(topic), class: ['thredded--main-section', 'thredded--topic', *topic_css_classes(topic)] do %> <%= render 'thredded/topics/header', topic: topic %> <%= view_hooks.posts_common.pagination_top.render(self, posts: @posts) do %> <% end %> <%= render_posts @posts, partial: 'thredded/posts/post', content_partial: 'thredded/posts/content', locals: { actions: { quote: true } } %> <%= view_hooks.posts_common.pagination_bottom.render(self, posts: @posts) do %> <% end %> <% if topic.locked? %>
<%= t 'thredded.topics.locked.message'%>
<% end %> <% if policy(@new_post.post).create? %>