<% case @ticket.status when "open" badge_class = "tk-open" when "closed" badge_class = "tk-close" when "commenced" badge_class = "tk-processing" end %> <% content_for :page_menu do %> <% end %>

Ticket number : #<%= @ticket.uid %>

<% if @ticket.status != "commenced" %>
<% case @ticket.status %> <% when "open" %> Close <% if !@ticket.reopened? %> Delete <% end %> <% when "closed" %> <% if @ticket.can_be_reopened? %> Reopen <% end %> <% end %>
<% end %>
Sorry, we found nothing.
<%= @ticket.subject %>
<%= @ticket.author %> Type : <%= @ticket.category.title %> Time : <%= @ticket.created_at.strftime("%d %B %y %H:%M") %> Number : <%= @ticket.uid %>
<%= @ticket.status.capitalize %>
<% @ticket.ticket_queries.asc(:created_at).each do |query| %>

<%= query.query.html_safe %>

<% responses = query.ticket_query_responses.for_clients.asc(:created_at) %> <% if responses.count > 0 %>

Response

<% responses.each do |response| %>
author
<%= response.author.name %> <%= response.created_at.strftime("%d %B %Y - %H:%M") %>
<%= response.response.html_safe %>
<% end %>
<% end %>
<% end %>