small fix for deleted users
This commit is contained in:
parent
5c03141532
commit
44d3277318
|
@ -15,7 +15,7 @@
|
|||
<% dt = DateTime.parse(response.created_at.to_s) %> <%= dt.strftime("%d %B %Y - %H:%M") %>
|
||||
</div>
|
||||
<div class="ticket-response-delete-wrap">
|
||||
<% if user.id.to_s == current_user.id.to_s %>
|
||||
<% if !user.nil? && user.id.to_s == current_user.id.to_s %>
|
||||
<a class="ticket-response-delete" href="/admin/ticket/delete_response" data-response-id="<%= response.id.to_s %>">
|
||||
<i class="ticket-response-delete-icon fa fa-trash"></i>
|
||||
Delete
|
||||
|
@ -40,8 +40,8 @@
|
|||
end
|
||||
end %>
|
||||
<div class="ticket-tag-member tool-tip-parent">
|
||||
<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 %></span>
|
||||
<img class="t-avatar <%= !user.nil? && 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>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue