adds comments to user's page

This commit is contained in:
Juanjo Bazán
2015-11-03 19:00:49 +01:00
committed by Juanjo Bazán
parent 7b2e09d54d
commit e8232f296e
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
<table class="clear">
<% @comments.each do |comment| %>
<tr id="debate_<%= comment.id %>">
<td>
<i><%= t("users.show.comment_to") %> <%= link_to comment.commentable.title, comment.commentable %></i>
<br>
<%= comment.body %>
</td>
</tr>
<% end %>
</table>
<%= paginate @comments %>