% case ticket_by_c.status
when "open"
badge_class = "badge-info"
when "closed"
badge_class = "badge-inverse"
when "commenced"
badge_class = "badge-success"
end
case ticket_by_c.tagged_status(current_user)
when "not_tagged"
tagged_class = "fa-minus"
when "tagged"
tagged_class = "fa-eye-slash"
when "read"
tagged_class = "fa-eye"
end
%>
|
<%= ticket_by_c.uid %> |
<% if !ticket_by_c.registered_site.nil? %>
<%= ticket_by_c.registered_site.title %>
<% else %>
Site deleted
<% end %>
|
<%= ticket_by_c.subject %>
|
<% t = DateTime.parse(ticket_by_c.created_at.to_s) %>
<%= t.strftime("%d %B %Y - %H:%M") %>
|
<% ticket_by_c.tags.each do |tag| %>
<%= tag.name %>
<% end %>
|
<%= ticket_by_c.status %>
<% if (ticket_by_c.status == "open" || ticket_by_c.status == "commenced") && ticket_by_c.reopened? %>
Reopened
<% end %>
|
<% if !ticket_by_c.taken_by.nil?
user = User.find(ticket_by_c.taken_by) rescue nil%>
<%= user.name if !user.nil? %>
<% else %>
<% end %>
|
<% if ticket_by_c.is_urgent? %>
<% else %>
<% end %>
|