From db8f4ea58f82d0d667c6cd3d0075082d974e7eca Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 20 Mar 2014 14:02:21 -0400 Subject: [PATCH] Don't show "in reply to" when there's a quote --- app/views/embed/comments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index edb6319c4..5e55330a6 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -11,7 +11,7 @@ <%- @topic_view.posts.each do |post| %>
<%= 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 %>