2013-07-04 22:08:23 +04:00
|
|
|
<!DOCTYPE html>
|
2018-08-20 13:55:58 +02:00
|
|
|
<html lang="<%= html_lang %>">
|
2013-07-04 22:08:23 +04:00
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2013-07-06 16:58:44 +04:00
|
|
|
<title><%= @topic_view.topic.title %></title>
|
2018-07-30 16:22:51 +05:30
|
|
|
<%= raw crawlable_meta_data(title: @topic_view.title, description: @topic_view.summary(strip_images: true), image: @topic_view.image_url, read_time: @topic_view.read_time, like_count: @topic_view.like_count, published_time: @topic_view.published_time) %>
|
2017-02-07 16:11:06 -05:00
|
|
|
<% if @topic_view.prev_page %>
|
|
|
|
<link rel="prev" href="<%= @topic_view.prev_page_path -%>">
|
|
|
|
<% end %>
|
|
|
|
<% if @topic_view.next_page %>
|
|
|
|
<link rel="next" href="<%= @topic_view.next_page_path -%>">
|
|
|
|
<% end %>
|
2013-07-04 22:08:23 +04:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<% @topic_view.posts.each do |post| %>
|
|
|
|
<% if post.user %>
|
2014-05-20 16:21:47 -07:00
|
|
|
<div class='creator'>
|
2015-01-22 22:34:35 +05:30
|
|
|
<b><%= post.user.username %></b> <%= "(#{post.user.name})" if (SiteSetting.display_name_on_posts && SiteSetting.enable_names?) %> at <%= post.created_at.to_formatted_s(:long_ordinal) %> — #<%= post.post_number %>
|
2013-07-04 22:08:23 +04:00
|
|
|
</div>
|
2014-05-20 16:21:47 -07:00
|
|
|
<div class='post'>
|
|
|
|
<% if post.hidden %>
|
|
|
|
<%= t('flagging.user_must_edit').html_safe %>
|
|
|
|
<% else %>
|
|
|
|
<%= post.cooked.html_safe %>
|
|
|
|
<% end %>
|
2013-07-04 22:08:23 +04:00
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2014-05-20 16:21:47 -07:00
|
|
|
<p>
|
|
|
|
<% if @topic_view.prev_page %>
|
|
|
|
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
|
|
|
|
<% end %>
|
|
|
|
<% if @topic_view.next_page %>
|
|
|
|
<b><%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next' %></b>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2013-07-04 22:08:23 +04:00
|
|
|
</body>
|