fix error
This commit is contained in:
parent
0c9fb978b0
commit
247db7fb3c
|
@ -103,7 +103,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
||||||
ticket.category_id = category.id
|
ticket.category_id = category.id
|
||||||
ticket.save
|
ticket.save
|
||||||
end
|
end
|
||||||
redirect_to admin_ticket_path(ticket.id)
|
redirect_to admin_tickets_manage_path(ticket.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start
|
def start
|
||||||
|
@ -111,7 +111,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
||||||
ticket.status = "commenced"
|
ticket.status = "commenced"
|
||||||
ticket.taken_by = current_user.id
|
ticket.taken_by = current_user.id
|
||||||
ticket.save
|
ticket.save
|
||||||
redirect_to admin_ticket_path(ticket.id)
|
redirect_to admin_tickets_manage_path(ticket.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def close
|
def close
|
||||||
|
@ -119,7 +119,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
||||||
ticket.status = "closed"
|
ticket.status = "closed"
|
||||||
ticket.urgent = false
|
ticket.urgent = false
|
||||||
ticket.save
|
ticket.save
|
||||||
redirect_to admin_ticket_path(ticket.id)
|
redirect_to admin_tickets_manage_path(ticket.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def leave
|
def leave
|
||||||
|
@ -127,7 +127,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
||||||
ticket.status = "open"
|
ticket.status = "open"
|
||||||
ticket.taken_by = nil
|
ticket.taken_by = nil
|
||||||
ticket.save
|
ticket.save
|
||||||
redirect_to admin_ticket_path(ticket.id)
|
redirect_to admin_tickets_manage_path(ticket.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def reopen
|
def reopen
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
%>
|
%>
|
||||||
<div class="ticket ticket-item" id="ticket_<%= ticket.id.to_s %>" data-id="<%= ticket.id.to_s %>">
|
<div class="ticket ticket-item" id="ticket_<%= ticket.id.to_s %>" data-id="<%= ticket.id.to_s %>">
|
||||||
#<%= ticket.uid %> -
|
#<%= ticket.uid %> -
|
||||||
<a class="ticket-link" href="<%= admin_ticket_path(ticket.id) %>">
|
<a class="ticket-link" href="<%= admin_tickets_manage_path(ticket.id) %>">
|
||||||
<span class="ticket-title"><%= ticket.subject %></span>
|
<span class="ticket-title"><%= ticket.subject %></span>
|
||||||
</a>
|
</a>
|
||||||
<% if !ticket.registered_site.nil? %>
|
<% if !ticket.registered_site.nil? %>
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="ticket-site-dead"><i class="fa fa-chain-broken"></i> Site deleted</span>
|
<span class="ticket-site-dead"><i class="fa fa-chain-broken"></i> Site deleted</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="ticket-date"><abbr title="<%= ticket.created_at.strftime("%dth %B %y %H:%M") %>"><i class="fa fa-calendar" aria-hidden="true"></i></abbr></span>
|
<span class="ticket-date"><abbr title="<%= ticket.created_at.strftime("%Y/%m/%d %H:%M:%S") %>"><i class="fa fa-calendar" aria-hidden="true"><%= ticket.created_at.strftime("%Y/%m/%d %H:%M:%S") %></i></abbr></span>
|
||||||
<div class="ticket-label pull-right">
|
<div class="ticket-label pull-right">
|
||||||
<% if ticket.is_urgent? %>
|
<% if ticket.is_urgent? %>
|
||||||
<span class="label label-danger">
|
<span class="label label-danger">
|
||||||
|
|
Loading…
Reference in New Issue