first commit
This commit is contained in:
17
app/views/comments/_comment.html.erb
Normal file
17
app/views/comments/_comment.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<% unless comment.archived? %>
|
||||
<p>
|
||||
<strong>Commenter:</strong>
|
||||
<%= comment.commenter %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Comment:</strong>
|
||||
<%= comment.body %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= link_to "Destroy Comment", [comment.article, comment], data: {
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure?"
|
||||
} %>
|
||||
</p>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user