From 2671b25ba6e3b57a9247544d3e8343b357c60ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 4 Nov 2015 14:09:16 +0100 Subject: [PATCH] makes author name a link to activity page in debates/proposals/comments --- app/views/comments/_comment.html.erb | 2 +- app/views/shared/_author_info.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 1ec571633..dcf02d084 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -36,7 +36,7 @@ <% if comment.user.hidden? || comment.user.erased? %> <%= t("comments.comment.user_deleted") %> <% else %> - <%= comment.user.name %> + <%= link_to comment.user.name, user_path(comment.user) %> <% if comment.user.official? %>  •  diff --git a/app/views/shared/_author_info.html.erb b/app/views/shared/_author_info.html.erb index ee5c1f749..b51d3a261 100644 --- a/app/views/shared/_author_info.html.erb +++ b/app/views/shared/_author_info.html.erb @@ -7,7 +7,7 @@ <% else %> - <%= resource.author.name %> + <%= link_to resource.author.name, user_path(resource.author) %> <% if resource.author.official? %>  •