mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
27 lines
768 B
Text
27 lines
768 B
Text
<h2>
|
|
<%= render_topic_title(@topic_view.topic) %>
|
|
</h2>
|
|
<hr/>
|
|
|
|
<% @topic_view.posts.each do |post| %>
|
|
<div class='creator'>
|
|
#<%=post.post_number%> By: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
|
</div>
|
|
<div class='post'>
|
|
<%= post.cooked.html_safe %>
|
|
</div>
|
|
<hr/>
|
|
<% end %>
|
|
|
|
<% if @topic_view.next_page %>
|
|
<p>
|
|
<b><%= link_to("next page →".html_safe, @topic_view.next_page_path ) %></b>
|
|
</p>
|
|
<% end %>
|
|
|
|
|
|
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>
|
|
|
|
<% content_for :head do %>
|
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, format: :rss}, title: "RSS feed of '#{@topic_view.title}'", type: 'application/rss+xml') %>
|
|
<% end %>
|