From e7955b77dc517b37d24d4bb5cf35dbc68d662f94 Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Mon, 10 Nov 2014 13:37:23 -0600 Subject: [PATCH] Link commenter icons to their profile --- views/_news.erb | 2 +- views/_news_profile_comment.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/_news.erb b/views/_news.erb index ab64dbb9..f0080ec1 100644 --- a/views/_news.erb +++ b/views/_news.erb @@ -90,7 +90,7 @@ <% event.comments.each do |comment| %> <% comment_actioning_site = comment.actioning_site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id).first %>
- + <% if comment_actioning_site.supporter? %><% end %><%= comment_actioning_site.username %> <%= comment.created_at.ago %> diff --git a/views/_news_profile_comment.erb b/views/_news_profile_comment.erb index 33040be9..845448ec 100644 --- a/views/_news_profile_comment.erb +++ b/views/_news_profile_comment.erb @@ -2,7 +2,7 @@ <% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id).first %>
-
+ <% if current_site && current_site.id == actioning_site.id %> You