Merge branch 'rs-todo-has-tooltip' into 'master'

Add tooltips to todo target links



See merge request !4370
This commit is contained in:
Dmitriy Zaporozhets 2016-06-02 20:20:18 +00:00
commit 94b0da4230

View file

@ -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)