Files
nairobi/app/views/users/_comments.html.erb
Javi Martín 67a13d5fea Use local variables in user profile partials
This way we'll be able to render the partials from places like a
component.
2021-10-05 13:26:30 +02:00

21 lines
411 B
Plaintext

<table class="margin-top">
<thead>
<tr>
<th scope="col"><%= t("users.show.comments") %></th>
</tr>
</thead>
<tbody>
<% comments.each do |comment| %>
<tr id="comment_<%= comment.id %>">
<td>
<%= comment_commentable_title(comment) %>
<br>
<%= comment.body %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate comments %>