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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-05 21:08:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-05 21:08:19 +0300
commitaee8d27430f12f9b5bcdbbee4165b9fbc240d3e3 (patch)
treec67a92fe8fcf5c51545ea1fb00990a32224cbe9b /app/helpers/todos_helper.rb
parent86e1f47cd19e7c164fb0b2c24e28a63ea27ae5ff (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r--app/helpers/todos_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index 15c602757a5..2b4f2f11d1e 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -55,6 +55,7 @@ module TodosHelper
def todo_target_type_name(todo)
return _('design') if todo.for_design?
+ return _('alert') if todo.for_alert?
todo.target_type.titleize.downcase
end
@@ -68,6 +69,8 @@ module TodosHelper
project_commit_path(todo.project, todo.target, path_options)
elsif todo.for_design?
todos_design_path(todo, path_options)
+ elsif todo.for_alert?
+ details_project_alert_management_path(todo.project, todo.target)
else
path = [todo.resource_parent, todo.target]