diff --git a/views/_news.erb b/views/_news.erb index 7bcb4957..c8538aa1 100644 --- a/views/_news.erb +++ b/views/_news.erb @@ -12,8 +12,7 @@ <% events.each do |event| %> <% if event.profile_comment_id %> -
- <%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment} %> + <%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment, event: event} %> <% elsif event.follow_id %>
diff --git a/views/_news_profile_comment.erb b/views/_news_profile_comment.erb index 7911b079..24e21f62 100644 --- a/views/_news_profile_comment.erb +++ b/views/_news_profile_comment.erb @@ -1,8 +1,9 @@ <% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id).first %> <% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id).first %> +
-
+
<% if current_site && current_site.id == actioning_site.id %> You