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.
This commit is contained in:
David Stygstra 2015-11-08 12:02:54 -05:00
parent e4a23f74ca
commit c1d1a44472

View file

@ -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? %>
<span class="comments_label">
|
<a href="<%= story.comments_path %>"><%= story.comments_count == 0 ?