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 %>

View File

@@ -336,7 +336,8 @@ en:
comments: comments:
one: "1 Comment" one: "1 Comment"
other: "%{count} Comments" other: "%{count} Comments"
no_activity: "Usuario sin actividad pública" no_activity: "User has no public activity"
comment_to: "Comment in "
unauthorized: unauthorized:
default: "You do not have permission to access this page." default: "You do not have permission to access this page."
manage: manage:

View File

@@ -337,6 +337,7 @@ es:
one: "1 Comentario" one: "1 Comentario"
other: "%{count} Comentarios" other: "%{count} Comentarios"
no_activity: "Usuario sin actividad pública" no_activity: "Usuario sin actividad pública"
comment_to: "Comentario en "
unauthorized: unauthorized:
default: "No tienes permiso para acceder a esta página." default: "No tienes permiso para acceder a esta página."
manage: manage: