Set link title for todos. Closes #14042

This commit is contained in:
Josh Frye 2016-03-10 11:09:31 -05:00
parent 38823e3e83
commit c8d06b7001
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module TodosHelper
def todo_target_link(todo)
target = todo.target_type.titleize.downcase
link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo)
link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo), {title: todo.target.nil? ? h(target) : h(todo.target.title)}
end
def todo_target_path(todo)