mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
26 lines
No EOL
716 B
Text
26 lines
No EOL
716 B
Text
<h2>
|
|
<a href="<%= @topic_view.relative_url %>"><%= @topic_view.title %></a>
|
|
</h2>
|
|
<hr/>
|
|
|
|
<% @topic_view.posts.each do |post| %>
|
|
<div class='creator'>
|
|
#<%=post.post_number%> By: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
|
</div>
|
|
<div class='post'>
|
|
<%= post.cooked.html_safe %>
|
|
</div>
|
|
<hr/>
|
|
<% end %>
|
|
|
|
<% if @topic_view.next_page %>
|
|
<p>
|
|
<a href="<%= @topic_view.next_page_path %>">next page →</a>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%- content_for :canonical do %>
|
|
<%= "#{request.protocol}#{request.host_with_port}#{@topic_view.canonical_path}" %>
|
|
<%- end %>
|
|
|
|
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> |