<%= render_topic_title(@topic_view.topic) %>
<% @breadcrumbs = categories_breadcrumb(@topic_view.topic)
if @breadcrumbs.present? %>
<% @breadcrumbs.each_with_index do |c,i| %>
<%= link_to c[:url], itemprop: 'item' do %>
<%= c[:name] %>
<% end %>
<% end %>
<% end %>
<%= server_plugin_outlet "topic_header" %>
<% @topic_view.posts.each do |post| %>
<% if (u = post.user) %>
<%= u.username %>
<%= "(#{u.name})" if (SiteSetting.display_name_on_posts && SiteSetting.enable_names? && !u.name.blank?) %>
#<%= post.post_number %>
<%= post.hidden ? t('flagging.user_must_edit').html_safe : post.cooked.html_safe %>
<% end %>
<% end %>
<% if @topic_view.prev_page || @topic_view.next_page %>
<% if @topic_view.prev_page %>
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev', itemprop: 'name' %>
<% end %>
<% if @topic_view.next_page %>
<%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next', itemprop: 'name' %>
<% end %>
<% end %>
<% content_for :head do %>
<%= 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') %>
<%= crawlable_meta_data(title: @topic_view.title,
description: @topic_view.summary,
image: @topic_view.image_url) %>
<% end %>
<% content_for(:title) { @topic_view.title } %>