Sha256: 09d6bff1395589d429ed46c0ce8e01741476b5f6a25535afead0f218ec8964d2
Contents?: true
Size: 1.27 KB
Versions: 5
Compression:
Stored size: 1.27 KB
Contents
<% 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 %> <%= render partial: 'thredded/posts/post', collection: @posts, cached: true %> <% if policy(@new_post).create? %> <div class="thredded--post-form--wrapper"> <h3 class="thredded--post-form--title">Add a post</h3> <%= render 'thredded/posts/form', topic: topic, post: @new_post, button_text: t('thredded.posts.form.create_btn') %> </div> <% end %> <% if topic.can_destroy? %> <div class="thredded--topic-delete--wrapper"> <%= form_tag topic.destroy_path, method: :delete, class: 'thredded--topic-delete-form' do %> <%= submit_tag 'Delete Topic', class: 'thredded--form--submit' %> <% end %> </div> <% end %> <% end %> <footer> <%= paginate @posts %> </footer> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems