Don't show "in reply to" when there's a quote

This commit is contained in:
Robin Ward 2014-03-20 14:02:21 -04:00
parent 3fbb2cd728
commit db8f4ea58f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
<%- @topic_view.posts.each do |post| %>
<article class='post<%- if post.trashed? %> deleted<% end %>' id='post-<%= post.id.to_s %>'>
<%= link_to embed_post_date(post.created_at), post.url, class: 'post-date', target: "_blank" %>
<%- if post.reply_to_post.present? %>
<%- if post.reply_to_post.present? && !post.cooked.index('aside') %>
<%= link_to I18n.t('embed.in_reply_to', username: post.reply_to_post.username), post.reply_to_post.url, 'data-link-to-post' => post.reply_to_post.id.to_s, :class => 'in-reply-to' %>
<%- end %>