mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
<h2>
|
|
<%= render_topic_title(@topic_view.topic) %>
|
|
</h2>
|
|
<hr/>
|
|
|
|
<% @topic_view.posts.each do |post| %>
|
|
<% if post.user %>
|
|
<div class='creator'>
|
|
#<%=post.post_number%> <%= t '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 %>
|
|
<% end %>
|
|
|
|
|
|
<% if @topic_view.next_page %>
|
|
<p>
|
|
<% if params[:page].to_i > 1 %>
|
|
<a href="" rel="prev"><%= t 'prev_page'%></a>
|
|
<% end %>
|
|
<b><a href="<%= @topic_view.next_page_path %>" rel="next"><%= t 'next_page'%></a></b>
|
|
</p>
|
|
<% end %>
|
|
|
|
|
|
<p><%= t 'powered_by_html' %></p>
|
|
|
|
<% content_for :head do %>
|
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, slug: @topic_view.topic.slug, topic_id: @topic_view.topic.id}, title: t('rss_posts_in_topic', topic: @topic_view.title), type: 'application/rss+xml') %>
|
|
<%= crawlable_meta_data(title: @topic_view.title,
|
|
description: @topic_view.summary,
|
|
image: @topic_view.image_url) %>
|
|
<% end %>
|
|
|
|
<% content_for(:title) { @topic_view.title } %>
|