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

26 lines
716 B
Text
Raw Normal View History

2013-02-05 14:16:51 -05:00
<h2>
<a href="<%= @topic_view.relative_url %>"><%= @topic_view.title %></a>
2013-02-05 14:16:51 -05:00
</h2>
2013-02-13 01:43:21 -05:00
<hr/>
<% @topic_view.posts.each do |post| %>
2013-02-05 14:16:51 -05:00
<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>
2013-02-13 01:43:21 -05:00
<hr/>
2013-02-05 14:16:51 -05:00
<% end %>
<% if @topic_view.next_page %>
2013-02-05 14:16:51 -05:00
<p>
2013-02-13 01:43:21 -05:00
<a href="<%= @topic_view.next_page_path %>">next page &rarr;</a>
2013-02-05 14:16:51 -05:00
</p>
<% end %>
<%- content_for :canonical do %>
<%= "#{request.protocol}#{request.host_with_port}#{@topic_view.canonical_path}" %>
<%- end %>
2013-02-13 01:43:21 -05:00
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>