summaryrefslogtreecommitdiff
path: root/app/views/dashboard/todos/_todo.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-09-23 17:28:06 +0100
committerPhil Hughes <me@iamphill.com>2016-10-03 09:55:12 +0100
commita3abfb9708d894b434484fa0e2a836bb0ebd2cdb (patch)
tree25b429aa36ed336385829f1cdcf1b939ea9cce17 /app/views/dashboard/todos/_todo.html.haml
parent08b7480f51f6072ba70b8739301b1ba5d1df1213 (diff)
downloadgitlab-ce-a3abfb9708d894b434484fa0e2a836bb0ebd2cdb.tar.gz
Moved todo due date text into helper method
Diffstat (limited to 'app/views/dashboard/todos/_todo.html.haml')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml
index 06ea5675a0f..45d50f323e1 100644
--- a/app/views/dashboard/todos/_todo.html.haml
+++ b/app/views/dashboard/todos/_todo.html.haml
@@ -25,11 +25,7 @@
- is_overdue = todo.target.try(:overdue?)
&middot;
%span{ class: [('text-warning' if is_due_today), ('text-danger' if is_overdue)] }
- Due
- - if is_due_today
- today
- - else
- = todo.target.due_date.to_s(:medium)
+ = todo_due_date(todo)
.todo-body
.todo-note