Sha256: 782a10f04e61ef9ca44fc54e4a6558a9aed6b2d1159c1e9a1f4fe1ad22f18db7
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
<div id = "comment_<%= comment.id %>" class = "comment"> <div class = "comment_body"> <%= simple_format h comment.body %> </div> <p class = "comment_author">By <%= comment.author %></p> <% deleteMessage = "Are you sure you want to delete this comment?" unless comment.children.empty? deleteMessage += " Note that this will remove all replies to this "\ "comment as well." end replyComment = comment.children.build %> <%= link_to "Reply", "#", class: "reply", data: { form: "#{render(partial: "proclaim/comments/form", locals: {comment: replyComment, target: target})}", target: target } %> <% if policy(comment).destroy? %> <%= link_to "Edit", "#", class: "edit", data: { form: "#{render(partial: "proclaim/comments/form", locals: {comment: comment})}" } %> <% end %> <% if policy(comment).destroy? %> <%= link_to "Delete", comment, method: :delete, remote: true, class: "delete", data: { confirm: deleteMessage } %> <% end %> </div>
Version data entries
10 entries across 10 versions & 1 rubygems