From 893fc79dee5b6229c6b86b3e6b68693bcd7d15d4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 3 Jan 2013 21:46:52 +0100 Subject: [PATCH] Added article count support in overviews. --- .../app/controllers/_application_controller.js.coffee | 1 + .../javascripts/app/controllers/_dashboard/ticket.js.coffee | 2 ++ .../javascripts/app/controllers/agent_ticket_view.js.coffee | 2 ++ app/assets/javascripts/app/models/ticket.js.coffee | 2 ++ 4 files changed, 7 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 82642298e..5c2927968 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -80,6 +80,7 @@ class App.Controller extends Spine.Controller { name: 'last_contact_customer', callback: @frontendTime }, { name: 'first_response', callback: @frontendTime }, { name: 'close_time', callback: @frontendTime }, + { name: 'article_count', title: 'group'}, ] shown_all_attributes = [] for all_attribute in all_attributes diff --git a/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee index cf53f00e0..3d2691aaa 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee @@ -191,6 +191,7 @@ class Settings extends App.ControllerModal last_contact_customer: 'Last Contact Customer', first_response: 'First Response', close_time: 'Close Time', + article_count: 'Article Count' }, class: 'medium', # item_class: 'pull-left', @@ -215,6 +216,7 @@ class Settings extends App.ControllerModal last_contact_customer: 'Last Contact Customer', first_response: 'First Response', close_time: 'Close Time', + article_count: 'Article Count' }, class: 'medium', }, diff --git a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee index 258e9d149..84a0fdda1 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee @@ -388,6 +388,7 @@ class Settings extends App.ControllerModal last_contact_customer: 'Last Contact Customer' first_response: 'First Response' close_time: 'Close Time' + article_count: 'Article Count' class: 'medium' }, { @@ -410,6 +411,7 @@ class Settings extends App.ControllerModal last_contact_customer: 'Last Contact Customer' first_response: 'First Response' close_time: 'Close Time' + article_count: 'Article Count' class: 'medium' }, { diff --git a/app/assets/javascripts/app/models/ticket.js.coffee b/app/assets/javascripts/app/models/ticket.js.coffee index 144ef34b6..a25312b88 100644 --- a/app/assets/javascripts/app/models/ticket.js.coffee +++ b/app/assets/javascripts/app/models/ticket.js.coffee @@ -16,4 +16,6 @@ class App.Ticket extends App.Model { name: 'last_contact_customer', display: 'Last contact (Customer)', tag: 'time', null: true, style: 'width: 12%' }, { name: 'first_response', display: 'First response', tag: 'time', null: true, style: 'width: 12%' }, { name: 'close_time', display: 'Close time', tag: 'time', null: true, style: 'width: 12%' }, + { name: 'article_count', display: 'Article#', style: 'width: 12%' }, + ] \ No newline at end of file