Set link title for todos. Closes #14042
This commit is contained in:
parent
38823e3e83
commit
c8d06b7001
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue