don't show receiver if it's the same

This commit is contained in:
Kyle Drake 2016-01-05 21:51:25 -08:00
parent c42196e16d
commit 1ca6c9238a

View file

@ -10,13 +10,11 @@
<a href="/site/<%= actioning_site.username %>" class="user"><i class="fa fa-user"><% if actioning_site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= actioning_site.username %></a>
<% end %>
<i class="fa fa-chevron-right comment-symbol" title="commented on"></i>
<% if current_site && current_site.id != profile_comment.site_id %>
<i class="fa fa-chevron-right comment-symbol" title="commented on"></i>
<a href="/site/<%= profile_comment.site.username %>" class="user"><i class="fa fa-user"><% if profile_comment.site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= profile_comment.site.username %></a>
<% end %>
<% if current_site && current_site.id == profile_comment.site_id %>
<a href="/site/<%= current_site.username %>" class="you">You</a>
<% else %>
<a href="/site/<%= profile_comment.site.username %>" class="user"><i class="fa fa-user"><% if profile_comment.site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= profile_comment.site.username %></a>
<% end %>
<span class="date">
<a href="/site/<%= site.username %>?event_id=<%= profile_comment.event.id %>"><%= profile_comment.created_at.ago %></a>
</span>