% return if ticket_counter >= 5 %>
<% case ticket.status
when "open"
badge_class = "t-status-open"
when "closed"
badge_class = "t-status-close"
when "commenced"
badge_class = "t-status-processing"
end
%>
#<%= ticket.uid %> -
<%= ticket.subject %>
<% if !ticket.registered_site.nil? %>
<%= ticket.registered_site.title %>
<% else %>
Site deleted
<% end %>
"><%= ticket.created_at.strftime("%Y/%m/%d %H:%M:%S") %>
<% if ticket.is_urgent? %>
Urgent
<% end %>
<%= ticket.status.capitalize %>
<% if !ticket.taken_by.nil? %>
<% user = User.find(ticket.taken_by) rescue nil %>
<%= !user.nil? ? user.name : "User Deleted" %>
<% end %>