2013-12-31 14:37:43 -05:00
|
|
|
<header>
|
|
|
|
<%- if @topic_view.posts.present? %>
|
2014-01-02 11:59:20 -05:00
|
|
|
<%= link_to(I18n.t('embed.title'), @second_post_url, class: 'button', target: '_blank') %>
|
2013-12-31 14:37:43 -05:00
|
|
|
<%- else %>
|
|
|
|
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
|
|
|
<%- end if %>
|
|
|
|
|
2014-01-02 16:40:54 -05:00
|
|
|
<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url, target: '_blank') %>
|
2013-12-31 14:37:43 -05:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<%- if @topic_view.posts.present? %>
|
|
|
|
<%- @topic_view.posts.each do |post| %>
|
|
|
|
<article class='post'>
|
|
|
|
<%= link_to post.created_at.strftime("%e %b %Y"), post.url, class: 'post-date', target: "_blank" %>
|
|
|
|
<div class='author'>
|
|
|
|
<img src='<%= post.user.small_avatar_url %>'>
|
|
|
|
<h3><%= post.user.username %></h3>
|
|
|
|
</div>
|
|
|
|
<div class='cooked'><%= raw post.cooked %></div>
|
|
|
|
<div style='clear: both'></div>
|
|
|
|
</article>
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<footer>
|
2014-01-02 11:59:20 -05:00
|
|
|
<%= link_to(I18n.t('embed.continue'), @second_post_url, class: 'button', target: '_blank') %>
|
2014-01-02 11:32:50 -05:00
|
|
|
<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url, target: '_blank') %>
|
2013-12-31 14:37:43 -05:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|