2013-02-05 14:16:51 -05:00
|
|
|
<h2>
|
2013-02-13 19:15:10 +08:00
|
|
|
<%= render_topic_title(@topic_view.topic) %>
|
2013-02-05 14:16:51 -05:00
|
|
|
</h2>
|
2013-02-12 22:43:21 -08:00
|
|
|
<hr/>
|
|
|
|
|
2013-02-10 13:50:26 -05:00
|
|
|
<% @topic_view.posts.each do |post| %>
|
2013-04-11 16:04:20 -04:00
|
|
|
<% if post.user %>
|
|
|
|
<div class='creator'>
|
|
|
|
#<%=post.post_number%> <%= t '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 %>
|
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 17:04:13 +01: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-12 22:43:21 -08:00
|
|
|
|
2013-03-06 22:25:44 +01:00
|
|
|
<p><%= t 'powered_by_html' %></p>
|
2013-02-21 10:20:00 -08:00
|
|
|
|
|
|
|
<% content_for :head do %>
|
2013-05-29 18:01:25 -04:00
|
|
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, format: :rss, slug: @topic_view.topic.slug, topic_id: @topic_view.topic.id}, title: t('rss_posts_in_topic', topic: @topic_view.title), type: 'application/rss+xml') %>
|
2013-03-08 15:58:37 -05:00
|
|
|
<%= crawlable_meta_data(title: @topic_view.title,
|
|
|
|
description: @topic_view.summary,
|
|
|
|
image: @topic_view.image_url) %>
|
2013-02-21 10:20:00 -08:00
|
|
|
<% end %>
|
2013-03-18 19:24:27 +01:00
|
|
|
|
|
|
|
<% content_for(:title) { @topic_view.title } %>
|