Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-03-10 19:09:31 +0300
committerJosh Frye <joshfng@gmail.com>2016-03-10 19:40:52 +0300
commitc8d06b7001e03ed3f3a63e146e6f3b0f615f4d94 (patch)
treec86abb023a64d0f7ff70319872b633ebb5b2470b /app/helpers/todos_helper.rb
parent38823e3e83aefee02263064a1014285578ac39b3 (diff)
Set link title for todos. Closes #14042
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r--app/helpers/todos_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index 4b745a5b969..f41a4e15cb3 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -16,7 +16,7 @@ module TodosHelper
def todo_target_link(todo)
target = todo.target_type.titleize.downcase
- link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo)
+ link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo), {title: todo.target.nil? ? h(target) : h(todo.target.title)}
end
def todo_target_path(todo)