diff --git a/app/controllers/admin/tickets_manage_controller.rb b/app/controllers/admin/tickets_manage_controller.rb index 7040a28..3978615 100644 --- a/app/controllers/admin/tickets_manage_controller.rb +++ b/app/controllers/admin/tickets_manage_controller.rb @@ -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 diff --git a/app/models/ticket.rb b/app/models/ticket.rb index 3b21f48..d0c5ebd 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -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 diff --git a/app/views/admin/tickets_manage/_ticket.html.erb b/app/views/admin/tickets_manage/_ticket.html.erb index d7bceaa..362da14 100644 --- a/app/views/admin/tickets_manage/_ticket.html.erb +++ b/app/views/admin/tickets_manage/_ticket.html.erb @@ -10,7 +10,7 @@ %>
#<%= ticket.uid %> - - + <%= ticket.subject %> <% if !ticket.registered_site.nil? %> @@ -21,7 +21,7 @@ <% else %> Site deleted <% end %> - "> + ">
<% if ticket.is_urgent? %>