diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-23 17:28:06 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-03 09:55:12 +0100 |
commit | a3abfb9708d894b434484fa0e2a836bb0ebd2cdb (patch) | |
tree | 25b429aa36ed336385829f1cdcf1b939ea9cce17 /app/views | |
parent | 08b7480f51f6072ba70b8739301b1ba5d1df1213 (diff) | |
download | gitlab-ce-a3abfb9708d894b434484fa0e2a836bb0ebd2cdb.tar.gz |
Moved todo due date text into helper method
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/dashboard/todos/_todo.html.haml | 6 |
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?) · %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 |