Module: TasksHelper

Defined in:
app/helpers/tasks_helper.rb

Instance Method Summary collapse

Instance Method Details

#task_alert_level_class(task) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/helpers/tasks_helper.rb', line 4

def task_alert_level_class(task)
  
  return "alert-success" if (task.done?)
  
  case task.due_critical_level
    when 3
      "alert-error"        
    when 2
      "alert-info"
    else
      ""
  end
  
  
end