discourse/app/views/topics/show.html.erb
Régis Hanol 55c7ced2f3 corrected right-arrow html entity encoding
when using a javascript-disabled browser
2013-02-20 17:00:28 +01:00

24 lines
579 B
Plaintext

<h2>
<%= render_topic_title(@topic_view.topic) %>
</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>
<b><%= link_to("next page &rarr;".html_safe, @topic_view.next_page_path ) %></b>
</p>
<% end %>
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>