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.save
|
||||
end
|
||||
redirect_to admin_ticket_path(ticket.id)
|
||||
redirect_to admin_tickets_manage_path(ticket.id)
|
||||
end
|
||||
|
||||
def start
|
||||
|
@ -111,7 +111,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
|||
ticket.status = "commenced"
|
||||
ticket.taken_by = current_user.id
|
||||
ticket.save
|
||||
redirect_to admin_ticket_path(ticket.id)
|
||||
redirect_to admin_tickets_manage_path(ticket.id)
|
||||
end
|
||||
|
||||
def close
|
||||
|
@ -119,7 +119,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
|||
ticket.status = "closed"
|
||||
ticket.urgent = false
|
||||
ticket.save
|
||||
redirect_to admin_ticket_path(ticket.id)
|
||||
redirect_to admin_tickets_manage_path(ticket.id)
|
||||
end
|
||||
|
||||
def leave
|
||||
|
@ -127,7 +127,7 @@ class Admin::TicketsManageController < OrbitAdminController
|
|||
ticket.status = "open"
|
||||
ticket.taken_by = nil
|
||||
ticket.save
|
||||
redirect_to admin_ticket_path(ticket.id)
|
||||
redirect_to admin_tickets_manage_path(ticket.id)
|
||||
end
|
||||
|
||||
def reopen
|
||||
|
|
|
@ -2,7 +2,7 @@ class Ticket
|
|||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include OrbitTag::Taggable
|
||||
include OrbitCategory::Categorizable
|
||||
include OrbitCategory::Categorizable
|
||||
include Slug
|
||||
|
||||
field :site_type
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
%>
|
||||
<div class="ticket ticket-item" id="ticket_<%= ticket.id.to_s %>" data-id="<%= ticket.id.to_s %>">
|
||||
#<%= 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>
|
||||
</a>
|
||||
<% if !ticket.registered_site.nil? %>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<% else %>
|
||||
<span class="ticket-site-dead"><i class="fa fa-chain-broken"></i> Site deleted</span>
|
||||
<% 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">
|
||||
<% if ticket.is_urgent? %>
|
||||
<span class="label label-danger">
|
||||
|
|
Loading…
Reference in New Issue