Sha256: 3c88c71e12b2138574de04176a4850fb53d16b5a090c4d75c789f2379041a568

Contents?: true

Size: 1.29 KB

Versions: 43

Compression:

Stored size: 1.29 KB

Contents

<% private_topic = @posts.topic %>
<% content_for :thredded_page_title, private_topic.title %>
<% content_for :thredded_page_id, 'thredded--private-topic-show' %>
<% content_for :thredded_breadcrumbs, render('thredded/private_topics/breadcrumbs') %>

<%= thredded_page do %>
  <%= content_tag :section,
                  id: dom_id(private_topic),
                  class: ['thredded--main-section', 'thredded--topic', *topic_css_classes(private_topic)] do %>
    <%= render 'thredded/private_topics/header', topic: private_topic %>
    <%= view_hooks.posts_common.pagination_top.render(self, posts: @posts) do %>
      <footer class="thredded--pagination-top"><%= paginate @posts %></footer>
    <% end %>
    <%= render_posts @posts,
                     partial: 'thredded/private_posts/private_post',
                     content_partial: 'thredded/private_posts/content',
                     locals: { actions: { quote: true } }  %>
    <%= view_hooks.posts_common.pagination_bottom.render(self, posts: @posts) do %>
      <footer class="thredded--pagination-bottom"><%= paginate @posts %></footer>
    <% end %>

    <% if policy(@new_post.post).create? %>
      <%= render 'thredded/private_posts/form',
               topic: private_topic,
               post: @new_post %>
    <% end %>
  <% end %>
<% end %>

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
thredded-1.1.0 app/views/thredded/private_topics/show.html.erb
thredded-1.0.1 app/views/thredded/private_topics/show.html.erb
thredded-1.0.0 app/views/thredded/private_topics/show.html.erb
thredded-0.16.16 app/views/thredded/private_topics/show.html.erb
thredded-0.16.15 app/views/thredded/private_topics/show.html.erb
thredded-0.16.14 app/views/thredded/private_topics/show.html.erb
thredded-0.16.13 app/views/thredded/private_topics/show.html.erb
thredded-0.16.12 app/views/thredded/private_topics/show.html.erb
thredded-0.16.11 app/views/thredded/private_topics/show.html.erb
thredded-0.16.10 app/views/thredded/private_topics/show.html.erb
thredded-0.16.9 app/views/thredded/private_topics/show.html.erb
thredded-0.16.8 app/views/thredded/private_topics/show.html.erb
thredded-0.16.7 app/views/thredded/private_topics/show.html.erb
thredded-0.16.6 app/views/thredded/private_topics/show.html.erb
thredded-0.16.5 app/views/thredded/private_topics/show.html.erb
thredded-0.16.4 app/views/thredded/private_topics/show.html.erb
thredded-0.16.3 app/views/thredded/private_topics/show.html.erb
thredded-0.16.1 app/views/thredded/private_topics/show.html.erb
thredded-0.16.0 app/views/thredded/private_topics/show.html.erb
thredded-0.15.5 app/views/thredded/private_topics/show.html.erb