From 188d492f7a60396e7eecc59dfc9222761f87af0e Mon Sep 17 00:00:00 2001 From: taitus Date: Fri, 25 Aug 2017 13:16:13 +0200 Subject: [PATCH] Add tag author to participants --- app/views/communities/show.html.erb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/communities/show.html.erb b/app/views/communities/show.html.erb index 6cb0f6c31..30cf7b7e0 100644 --- a/app/views/communities/show.html.erb +++ b/app/views/communities/show.html.erb @@ -54,10 +54,12 @@ <%= link_to participant.name, user_path(participant)%> -  •  - - <%= t("comments.comment.author") %> - + <% if @community.topics.pluck(:author_id).include?(participant.id) %> +  •  + + <%= t("comments.comment.author") %> + + <% end %>