Merge branch 'rs-todo-has-tooltip' into 'master'
Add tooltips to todo target links See merge request !4370
This commit is contained in:
commit
94b0da4230
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