show thumbnails for comment search

This commit is contained in:
albert
2013-02-21 16:47:12 -05:00
parent 87b9170596
commit 9af5959629
2 changed files with 8 additions and 4 deletions

View File

@@ -10,9 +10,7 @@
<%= format_text(comment.body) %>
</div>
<menu>
<% if @comment || @comments %>
<li><%= link_to "View post", post_path(comment.post_id) %></li>
<% else %>
<% if @post || @posts %>
<li><%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %></li>
<% if comment.editable_by?(CurrentUser.user) %>
<li><%= link_to "Delete", comment_path(comment.id), :confirm => "Do you really want to delete this comment?", :method => :delete, :remote => true %></li>