Moved middot into helper method
This commit is contained in:
parent
8ea18c3761
commit
06fdfc7395
2 changed files with 3 additions and 2 deletions
|
@ -120,7 +120,8 @@ module TodosHelper
|
|||
is_due_today = todo.target.due_date.try(:today?)
|
||||
is_overdue = todo.target.try(:overdue?)
|
||||
|
||||
content_tag :span, class: [('text-warning' if is_due_today), ('text-danger' if is_overdue)] do
|
||||
html = "· ".html_safe
|
||||
html << content_tag(:span, class: [('text-warning' if is_due_today), ('text-danger' if is_overdue)]) do
|
||||
"Due #{is_due_today ? "today" : todo.target.due_date.to_s(:medium)}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
(removed)
|
||||
|
||||
· #{time_ago_with_tooltip(todo.created_at)}
|
||||
· #{todo_due_date(todo)}
|
||||
= todo_due_date(todo)
|
||||
|
||||
.todo-body
|
||||
.todo-note
|
||||
|
|
Loading…
Reference in a new issue