Skip to content

Commit

Permalink
Don't show "in reply to" when there's a quote
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Mar 20, 2014
1 parent 3fbb2cd commit db8f4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/embed/comments.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down

0 comments on commit db8f4ea

Please sign in to comment.