summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-02-20 11:53:15 -0800
committerDouwe Maan <douwe@selenight.nl>2016-02-20 11:53:15 -0800
commit57d16552ff769cc5b41737de803bc2ddc4813f4e (patch)
treea279d05313e2c2950e1e726ed995d59fea928341 /app/helpers
parent0e9775816a13feabf1ae0d4940ef30bba1196d40 (diff)
downloadgitlab-ce-57d16552ff769cc5b41737de803bc2ddc4813f4e.tar.gz
Include 'issue'/'merge request' in link
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/todos_helper.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index 7c360468945..cbbfc1e04f5 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -7,14 +7,9 @@ module TodosHelper
current_user.todos.done.count
end
- def todo_action_name(todo)
- target = todo.target_type.titleize.downcase
-
- [todo.action_name, target].join(" ")
- end
-
- def todo_target_link_html(todo)
- link_to "##{todo.target_iid}", todo_target_path(todo)
+ def todo_target_link(todo)
+ target = todo.target_type.titleize.downcase
+ link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo)
end
def todo_target_path(todo)