From 088084965c07d5b9542617975d23466b2d9fb7ec Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 21 Nov 2012 22:15:00 -0600 Subject: [PATCH] rss: only hide comments link when no url stories with a url but also a description were previously not getting comments link shown --- app/views/home/rss.erb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/home/rss.erb b/app/views/home/rss.erb index abbe26e..9d5c429 100644 --- a/app/views/home/rss.erb +++ b/app/views/home/rss.erb @@ -14,13 +14,14 @@ <%= story.user.username %> <%= story.created_at.rfc2822 %> <%= story.comments_url %> - <% if story.markeddown_description.present? %> - <%= raw coder.encode(story.markeddown_description, - :decimal) %> - <% else %> - <%= cdata_section(link_to("Comments", - story.comments_url)) %> - <% end %> + + <%= raw coder.encode(story.markeddown_description, :decimal) %> + <% if story.url.present? %> +

+ <%= raw link_to("Comments", story.comments_url) %> +

+ <% end %> +
<% story.taggings.each do |tagging| %> <%= tagging.tag.tag %> <% end %>