fix fetch all comment js
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<menu>
|
<menu>
|
||||||
<% if @comment || @comments %>
|
<% if @comment || @comments %>
|
||||||
<li><%= link_to "View post", post_path(post) %></li>
|
<li><%= link_to "View post", post_path(comment.post_id) %></li>
|
||||||
<% else %>
|
<% else %>
|
||||||
<li><%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %></li>
|
<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) %>
|
<% if comment.editable_by?(CurrentUser.user) %>
|
||||||
|
|||||||
Reference in New Issue
Block a user