Add tooltips to todo target links

This commit is contained in:
Robert Speicher 2016-05-30 23:05:02 -04:00
parent b5decabb00
commit 7edbce65b0
1 changed files with 3 additions and 1 deletions

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)