From e37053cea4375f16b2ed23a24d56d01c959519a8 Mon Sep 17 00:00:00 2001 From: wilkie Date: Thu, 15 Nov 2012 21:25:34 -0500 Subject: [PATCH] Removes link to reply on comment when not on a story page. The reply link does not work on any page that isn't a story page because it replies on the fact that a comment_form div exists on a page. That form is the base comment field present on a story page. Therefore, removing the link when the story is displayed next to the comment selects for that case easily. Closes #36 by virtue of removing the link. --- app/views/comments/_comment.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 83aaf43..8905d0b 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -57,7 +57,7 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ? delete <% end %> - <% if !story.is_gone? && !comment.is_gone? %> + <% if !story.is_gone? && !comment.is_gone? && !show_story %> | reply <% end %>