This commit is contained in:
Harry Bomrah 2017-07-25 15:42:56 +08:00
parent 44d3277318
commit 8eb8e1b1e5
1 changed files with 7 additions and 2 deletions

View File

@ -40,8 +40,13 @@
end end
end %> end %>
<div class="ticket-tag-member tool-tip-parent"> <div class="ticket-tag-member tool-tip-parent">
<img class="t-avatar <%= !user.nil? && response.read_by.include?(user.id.to_s) ? "read" : "" %>" src="<%= avatar %>" data-avatar-id="<%= user.id.to_s %>"> <% if !user.nil? %>
<span class="ticket-tag-member-name tool-tip right"><%= user.name rescue ""%></span> <img class="t-avatar <%= response.read_by.include?(user.id.to_s) ? "read" : "" %>" src="<%= avatar %>" data-avatar-id="<%= user.id.to_s %>">
<span class="ticket-tag-member-name tool-tip right"><%= user.name rescue ""%></span>
<% else %>
<img class="t-avatar" src="<%= avatar %>" data-avatar-id="<%= user.id.to_s %>">
<span class="ticket-tag-member-name tool-tip right"><%= user.name rescue "Member was deleted"%></span>
<% end %>
</div> </div>
<% end %> <% end %>
</div> </div>