From 57e93f8e69d3f018088998da37b32a86714ccc10 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 14 Jan 2012 17:10:31 -0500 Subject: [PATCH] fixes #279 --- app/views/comments/index_by_post.html.erb | 2 +- app/views/comments/partials/show/_comment.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/index_by_post.html.erb b/app/views/comments/index_by_post.html.erb index 958a8b3a0..e520ff501 100644 --- a/app/views/comments/index_by_post.html.erb +++ b/app/views/comments/index_by_post.html.erb @@ -11,7 +11,7 @@
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
- <%= render "comments/partials/index/list", :post => post, :comments => post.comments.recent, :show_header => true %> + <%= render "comments/partials/index/list", :post => post, :comments => post.comments.visible(CurrentUser.user).recent, :show_header => true %>
<% end %> diff --git a/app/views/comments/partials/show/_comment.html.erb b/app/views/comments/partials/show/_comment.html.erb index bcafabada..ea930604d 100644 --- a/app/views/comments/partials/show/_comment.html.erb +++ b/app/views/comments/partials/show/_comment.html.erb @@ -17,7 +17,7 @@ <% end %>
  • <%= link_to "Vote up", comment_votes_path(:comment_id => comment.id, :score => "up"), :method => :post, :remote => true %>
  • <%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %>
  • - + <% if @comment %>
  • <%= link_to "View post", post_path(post) %>
  • <% end %>