From e8232f296e4f484e4447b9bf0bf26dc351830a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Tue, 3 Nov 2015 19:00:49 +0100 Subject: [PATCH] adds comments to user's page --- app/views/users/_comments.html.erb | 13 +++++++++++++ config/locales/en.yml | 3 ++- config/locales/es.yml | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/views/users/_comments.html.erb b/app/views/users/_comments.html.erb index e69de29bb..62be0edc2 100644 --- a/app/views/users/_comments.html.erb +++ b/app/views/users/_comments.html.erb @@ -0,0 +1,13 @@ + + <% @comments.each do |comment| %> + + + + <% end %> +
+ <%= t("users.show.comment_to") %> <%= link_to comment.commentable.title, comment.commentable %> +
+ <%= comment.body %> +
+ +<%= paginate @comments %> diff --git a/config/locales/en.yml b/config/locales/en.yml index d4e838961..cb3c53059 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -336,7 +336,8 @@ en: comments: one: "1 Comment" other: "%{count} Comments" - no_activity: "Usuario sin actividad pública" + no_activity: "User has no public activity" + comment_to: "Comment in " unauthorized: default: "You do not have permission to access this page." manage: diff --git a/config/locales/es.yml b/config/locales/es.yml index 90c80f8b5..89eed3583 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -337,6 +337,7 @@ es: one: "1 Comentario" other: "%{count} Comentarios" no_activity: "Usuario sin actividad pública" + comment_to: "Comentario en " unauthorized: default: "No tienes permiso para acceder a esta página." manage: