34 lines
769 B
Plaintext
34 lines
769 B
Plaintext
<h1>Listing comments</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>User</th>
|
|
<th>File</th>
|
|
<th>Row</th>
|
|
<th>Column</th>
|
|
<th>Text</th>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @comments.each do |comment| %>
|
|
<tr>
|
|
<td><%= comment.user %></td>
|
|
<td><%= comment.file %></td>
|
|
<td><%= comment.row %></td>
|
|
<td><%= comment.column %></td>
|
|
<td><%= comment.text %></td>
|
|
<td><%= link_to 'Show', comment %></td>
|
|
<td><%= link_to 'Edit', edit_comment_path(comment) %></td>
|
|
<td><%= link_to 'Destroy', comment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<%= link_to 'New Comment', new_comment_path %>
|