Skip to content
Snippets Groups Projects
Commit 06fdfc73 authored by Phil Hughes's avatar Phil Hughes
Browse files

Moved middot into helper method

parent 8ea18c37
No related branches found
No related tags found
No related merge requests found
Loading
@@ -120,7 +120,8 @@ module TodosHelper
Loading
@@ -120,7 +120,8 @@ module TodosHelper
is_due_today = todo.target.due_date.try(:today?) is_due_today = todo.target.due_date.try(:today?)
is_overdue = todo.target.try(:overdue?) 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)}" "Due #{is_due_today ? "today" : todo.target.due_date.to_s(:medium)}"
end end
end end
Loading
Loading
Loading
@@ -19,7 +19,7 @@
Loading
@@ -19,7 +19,7 @@
(removed) (removed)
   
&middot; #{time_ago_with_tooltip(todo.created_at)} &middot; #{time_ago_with_tooltip(todo.created_at)}
&middot; #{todo_due_date(todo)} = todo_due_date(todo)
   
.todo-body .todo-body
.todo-note .todo-note
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment