This commit is contained in:
albert
2012-01-14 17:10:31 -05:00
parent a7bbbe8043
commit 57e93f8e69
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<div class="preview">
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
</div>
<%= 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 %>
<div class="clearfix"></div>
</div>
<% end %>

View File

@@ -17,7 +17,7 @@
<% end %>
<li><%= link_to "Vote up", comment_votes_path(:comment_id => comment.id, :score => "up"), :method => :post, :remote => true %></li>
<li><%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %></li>
<% if @comment %>
<li><%= link_to "View post", post_path(post) %></li>
<% end %>