<% dt = query.created_at %> <%= dt.strftime("%d %B %Y - %H:%M") %>
<%= smart_links_parser(query.query, @ticket.registered_site).html_safe %>

Response

> <%= render :partial => "response", :collection => query.ticket_query_responses.asc(:created_at) %>
<% if params[:reopen] != "true" && @ticket.ticket_queries.count == (query_counter + 1) %>
Internal Response
<% end %>