<% topic_url = Discourse.base_url + @topic_view.relative_url %> <% lang = SiteSetting.find_by_name('default_locale').try(:value) %> <% site_email = SiteSetting.find_by_name('contact_email').try(:value) %> <%= @topic_view.title %> <%= topic_url %> <%= @topic_view.posts.first.raw %> <%= "#{lang}" if lang %> <%= @topic_view.topic.created_at.rfc2822 %> <%= @topic_view.topic.category.name %> <% @topic_view.recent_posts.each do |post| %> <% next unless post.user %> <%= @topic_view.title %> <%= "#{site_email} (@#{post.user.username}#{" #{post.user.name}" if post.user.name.present?})" -%>

<%= t('author_wrote', author: link_to(post.user.name, userpage_url(post.user.username_lower))).html_safe %>

<%= post.cooked.html_safe %>

<%= link_to t('read_full_topic'), post_url %>

]]>
<%= post_url %> <%= post.created_at.rfc2822 %> <%= post_url %> <%= @topic_view.title %>
<% end %>