2013-02-06 03:16:51 +08:00
|
|
|
<h2>
|
2013-02-13 19:15:10 +08:00
|
|
|
<%= render_topic_title(@topic_view.topic) %>
|
2013-02-06 03:16:51 +08:00
|
|
|
</h2>
|
2014-06-05 23:14:06 +08:00
|
|
|
<% if c = @topic_view.topic.category %>
|
|
|
|
<a href="/category/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a>
|
|
|
|
<% end %>
|
2013-02-13 14:43:21 +08:00
|
|
|
<hr/>
|
|
|
|
|
2013-02-11 02:50:26 +08:00
|
|
|
<% @topic_view.posts.each do |post| %>
|
2013-04-12 04:04:20 +08:00
|
|
|
<% if post.user %>
|
|
|
|
<div class='creator'>
|
2014-05-21 07:21:47 +08:00
|
|
|
<b><%= post.user.username_lower %></b> <%= "(#{post.user.name})" if SiteSetting.display_name_on_posts %> at <%= post.created_at.to_formatted_s(:long_ordinal) %> — #<%= post.post_number %>
|
2013-04-12 04:04:20 +08:00
|
|
|
</div>
|
|
|
|
<div class='post'>
|
2014-04-15 23:57:43 +08:00
|
|
|
<% if post.hidden %>
|
|
|
|
<%= t('flagging.user_must_edit').html_safe %>
|
|
|
|
<% else %>
|
|
|
|
<%= post.cooked.html_safe %>
|
|
|
|
<% end %>
|
2013-04-12 04:04:20 +08:00
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<% end %>
|
2013-02-06 03:16:51 +08:00
|
|
|
<% end %>
|
|
|
|
|
2014-03-01 18:16:40 +08:00
|
|
|
|
2014-03-04 01:56:37 +08:00
|
|
|
<p>
|
2014-05-13 22:15:08 +08:00
|
|
|
<% if @topic_view.prev_page %>
|
2014-03-04 01:56:37 +08:00
|
|
|
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
|
|
|
|
<% end %>
|
|
|
|
<% if @topic_view.next_page %>
|
2014-05-21 07:21:47 +08:00
|
|
|
<b><%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next' %></b>
|
2014-03-04 01:56:37 +08:00
|
|
|
<% end %>
|
|
|
|
</p>
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2013-02-13 14:43:21 +08:00
|
|
|
|
2013-02-22 02:20:00 +08:00
|
|
|
<% content_for :head do %>
|
2014-01-08 14:20:46 +08:00
|
|
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, 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-09 04:58:37 +08:00
|
|
|
<%= crawlable_meta_data(title: @topic_view.title,
|
|
|
|
description: @topic_view.summary,
|
|
|
|
image: @topic_view.image_url) %>
|
2013-02-22 02:20:00 +08:00
|
|
|
<% end %>
|
2013-03-19 02:24:27 +08:00
|
|
|
|
2014-01-08 14:20:46 +08:00
|
|
|
<% content_for(:title) { @topic_view.title } %>
|