Improved escalation notice.
This commit is contained in:
parent
f86fa3968c
commit
72778a2d78
2 changed files with 6 additions and 3 deletions
|
@ -114,8 +114,10 @@ class App.Controller extends Spine.Controller
|
|||
if escalation
|
||||
if diff > 0
|
||||
escalated = '-'
|
||||
if diff > -60 * 60
|
||||
if diff >= 0
|
||||
style = "class=\"label label-important\""
|
||||
else if diff > -60 * 60
|
||||
style = "class=\"label label-warning\""
|
||||
else
|
||||
style = "class=\"label label-success\""
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ class Sla < ApplicationModel
|
|||
|
||||
after_create :escalation_calculation_rebuild
|
||||
after_update :escalation_calculation_rebuild
|
||||
after_destroy :escalation_calculation_rebuild
|
||||
|
||||
private
|
||||
def escalation_calculation_rebuild
|
||||
|
|
Loading…
Reference in a new issue