% case site_ticket.status
when "open"
badge_class = "tk-open"
when "closed"
badge_class = "tk-close"
when "commenced"
badge_class = "tk-processing"
end
%>
<%= site_ticket.subject %>
Type : <%= site_ticket.category.title %>
Time : <%= site_ticket.created_at.strftime("%d %B %y %H:%M") %>
Number : <%= site_ticket.uid %>
<%= site_ticket.status.capitalize %>
<% if site_ticket.status != "commenced" %>
<% case site_ticket.status %>
<% when "open" %>
Close
<% if !site_ticket.reopened? %>
Delete
<% end %>
<% when "closed" %>
<% if site_ticket.can_be_reopened? %>
Reopen
<% end %>
<% end %>
<% end %>