diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-03 12:08:34 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-03 12:08:34 +0300 |
commit | 06fdfc7395681ee6dca6f1b9d998cdbeb57b0a24 (patch) | |
tree | 551200fcf2f13f29c2ed8a1ba6791b1b73869696 /app/helpers/todos_helper.rb | |
parent | 8ea18c37611ccb86b286761cc373c01199d64878 (diff) |
Moved middot into helper method
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 9542d3d7941..3d2e079c380 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -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 |