BigW Consortium Gitlab

Commit 08b7480f by Phil Hughes

Uses variable

Added red text if overdue
parent 77f7e666
......@@ -21,10 +21,12 @@
· #{time_ago_with_tooltip(todo.created_at)}
- if todo.target.try(:due_date)
- is_due_today = todo.target.due_date.try(:today?)
- is_overdue = todo.target.try(:overdue?)
·
%span{ class: ('text-warning' if todo.target.due_date.try(:today?)) }
%span{ class: [('text-warning' if is_due_today), ('text-danger' if is_overdue)] }
Due
- if todo.target.due_date.try(:today?)
- if is_due_today
today
- else
= todo.target.due_date.to_s(:medium)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment