Add tooltips to todo target links
This commit is contained in:
parent
b5decabb00
commit
7edbce65b0
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ module TodosHelper
|
|||
|
||||
def todo_target_link(todo)
|
||||
target = todo.target_type.titleize.downcase
|
||||
link_to "#{target} #{todo.target_reference}", todo_target_path(todo), { title: todo.target.title }
|
||||
link_to "#{target} #{todo.target_reference}", todo_target_path(todo),
|
||||
class: 'has-tooltip',
|
||||
title: todo.target.title
|
||||
end
|
||||
|
||||
def todo_target_path(todo)
|
||||
|
|
Loading…
Reference in a new issue