summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-30 23:05:02 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-05-30 23:05:02 -0400
commit7edbce65b0cd8c420707904a6733c84fadf5d224 (patch)
tree8d11b98ecb7862a003e0e7c17bb89145c432dfab
parentb5decabb00d027e94478c3a0169ef92e14fc6ab9 (diff)
downloadgitlab-ce-rs-todo-has-tooltip.tar.gz
Add tooltips to todo target linksrs-todo-has-tooltip
-rw-r--r--app/helpers/todos_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index b9d7edb4185..b4923fbb138 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -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)