discourse/app/views/topics/show.html.erb

28 lines
768 B
Text
Raw Normal View History

2013-02-05 14:16:51 -05:00
<h2>
2013-02-13 06:15:10 -05:00
<%= render_topic_title(@topic_view.topic) %>
2013-02-05 14:16:51 -05:00
</h2>
2013-02-13 01:43:21 -05:00
<hr/>
<% @topic_view.posts.each do |post| %>
2013-02-05 14:16:51 -05:00
<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>
2013-02-13 01:43:21 -05:00
<hr/>
2013-02-05 14:16:51 -05:00
<% end %>
<% if @topic_view.next_page %>
2013-02-05 14:16:51 -05:00
<p>
<b><%= link_to("next page &rarr;".html_safe, @topic_view.next_page_path ) %></b>
2013-02-05 14:16:51 -05:00
</p>
<% end %>
2013-02-13 01:43:21 -05:00
<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 %>