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/>
|
|
|
|
|
2013-02-10 13:50:26 -05:00
|
|
|
<% @topic_view.posts.each do |post| %>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='creator'>
|
2013-03-01 11:04:13 -05:00
|
|
|
#<%=post.post_number%> <%= t 'by'%>: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
2013-02-05 14:16:51 -05:00
|
|
|
</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 %>
|
|
|
|
|
2013-02-10 13:50:26 -05:00
|
|
|
<% if @topic_view.next_page %>
|
2013-02-05 14:16:51 -05:00
|
|
|
<p>
|
2013-03-01 11:04:13 -05:00
|
|
|
<b><%= link_to(t('next_page').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
|
|
|
|
2013-03-01 11:04:13 -05:00
|
|
|
<p><%= t 'powered_by' %></p>
|
2013-02-21 13:20:00 -05:00
|
|
|
|
|
|
|
<% content_for :head do %>
|
2013-03-01 11:04:13 -05:00
|
|
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, format: :rss}, title: t('rss_feed', topic: @topic_view.title), type: 'application/rss+xml') %>
|
2013-02-21 13:20:00 -05:00
|
|
|
<% end %>
|