Add tag author to participants

This commit is contained in:
taitus
2017-08-25 13:16:13 +02:00
parent b143682234
commit 188d492f7a

View File

@@ -54,10 +54,12 @@
<span class="user-name">
<%= link_to participant.name, user_path(participant)%>
</span>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<%= t("comments.comment.author") %>
</span>
<% if @community.topics.pluck(:author_id).include?(participant.id) %>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<%= t("comments.comment.author") %>
</span>
<% end %>
</div>
</div>
</div>