summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-03 09:58:55 +0100
committerPhil Hughes <me@iamphill.com>2016-10-03 09:58:55 +0100
commit8ea18c37611ccb86b286761cc373c01199d64878 (patch)
tree96939c1c29f6269b585e446a4803db0333c8a756 /app/views
parenta3abfb9708d894b434484fa0e2a836bb0ebd2cdb (diff)
downloadgitlab-ce-8ea18c37611ccb86b286761cc373c01199d64878.tar.gz
Moved todo due date to helper method
Diffstat (limited to 'app/views')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml
index 45d50f323e1..cc77388563f 100644
--- a/app/views/dashboard/todos/_todo.html.haml
+++ b/app/views/dashboard/todos/_todo.html.haml
@@ -19,13 +19,7 @@
(removed)
&middot; #{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?)
- &middot;
- %span{ class: [('text-warning' if is_due_today), ('text-danger' if is_overdue)] }
- = todo_due_date(todo)
+ &middot; #{todo_due_date(todo)}
.todo-body
.todo-note