AutoCommit Mon Aug 10 21:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-10 21:03:04 +02:00
parent 2ef0dc7fb8
commit cc45de5791

View File

@@ -10,14 +10,17 @@
<p>
<%= comment.text %>
<% if can?(:comment, comment.commentable) && can?(:new, Comment) %>
<br><%= link_to "comment" , new_comment_path( commentable_type: "Comment", commentable_id: comment.id), remote:true %>
<br><%= link_to fa_icon("mail-reply")+" antworten" , new_comment_path( commentable_type: "Comment", commentable_id: comment.id), remote:true %>
<% end %>
</p>
<div id="<%= Comment.wrapid_for( comment)%>">
<%= render partial:"comments/comments", object: comment.children.order(:created_at).reverse_order if comment.children.size >0 %>
</div>
<%= link_to fa_icon("mail-reply")+" antworten" , new_comment_path( commentable_type: "Comment", commentable_id: comment.id), remote:true %>
<% end %>
</div>
<div id="<%= divid_for(comment,"newform") %>"></div>
</div>
</div>