From c1d1a4447258280c58a63f8024b54b673fed1185 Mon Sep 17 00:00:00 2001 From: David Stygstra Date: Sun, 8 Nov 2015 12:02:54 -0500 Subject: [PATCH] Show comments link even if there are no comments For stories with both text and a link that have no comments, the only way to view the text is to either log in (no account :( ) or view the page source and find the story ID. This commit fixes that by always showing the comments link. --- app/views/stories/_listdetail.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stories/_listdetail.html.erb b/app/views/stories/_listdetail.html.erb index ea2b56f..894cbc1 100644 --- a/app/views/stories/_listdetail.html.erb +++ b/app/views/stories/_listdetail.html.erb @@ -158,7 +158,7 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %> (hidden by <%= pluralize(story.hider_count, "user") %>) <% end %> <% end %> - <% if !story.is_gone? && (@user || story.comments_count > 0) %> + <% if !story.is_gone? %> | <%= story.comments_count == 0 ?