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