2013-02-05 14:16:51 -05:00
|
|
|
<h2>
|
2013-02-11 06:15:31 -05:00
|
|
|
<%= render_topic_title(@topic_view.topic) %>
|
|
|
|
link_to(@topic_view.topic.title, @topic_view.topic.relative_url)
|
2013-02-05 14:16:51 -05:00
|
|
|
</h2>
|
|
|
|
<% (@post ? [@post] : @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>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if @next_page%>
|
|
|
|
<p>
|
2013-02-11 06:13:04 -05:00
|
|
|
<b><%= link_to("next page", @topic_view.topic.relative_url + "?page=" + @next_page ) %></b>
|
2013-02-05 14:16:51 -05:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%- content_for :canonical do %><%= @canonical %><%- end %>
|