sort for queries and responses
This commit is contained in:
parent
771d7d8d4c
commit
275a7b1021
|
@ -8,7 +8,7 @@
|
||||||
Response
|
Response
|
||||||
</h4>
|
</h4>
|
||||||
<div <%= @ticket.ticket_queries.count == (query_counter + 1) ? "id=response-container" : "" %>>
|
<div <%= @ticket.ticket_queries.count == (query_counter + 1) ? "id=response-container" : "" %>>
|
||||||
<%= render :partial => "response", :collection => query.ticket_query_responses %>
|
<%= render :partial => "response", :collection => query.ticket_query_responses.desc(:created_at) %>
|
||||||
</div>
|
</div>
|
||||||
<% if params[:reopen] != "true" && @ticket.ticket_queries.count == (query_counter + 1) %>
|
<% if params[:reopen] != "true" && @ticket.ticket_queries.count == (query_counter + 1) %>
|
||||||
<div id="form_container" class="ticket-editor">
|
<div id="form_container" class="ticket-editor">
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="query_box" class="ticket-content">
|
<div id="query_box" class="ticket-content">
|
||||||
<%= render :partial => "query", :collection => @ticket.ticket_queries %>
|
<%= render :partial => "query", :collection => @ticket.ticket_queries.desc(:created_at) %>
|
||||||
</div>
|
</div>
|
||||||
<% if params[:reopen] == "true"%>
|
<% if params[:reopen] == "true"%>
|
||||||
<% if @ticket.status == "closed" %>
|
<% if @ticket.status == "closed" %>
|
||||||
|
|
Loading…
Reference in New Issue