discourse/app/views/topics/plain.html.erb

20 lines
519 B
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="<%=SiteSetting.default_locale%>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%= render_topic_title(@topic_view.topic) %></title>
</head>
<body>
<% @topic_view.posts.each do |post| %>
<% if post.user %>
<div>
#<%=post.post_number%> <%= t 'by'%>: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
</div>
<div>
<%= post.cooked.html_safe %>
</div>
<hr/>
<% end %>
<% end %>
</body>