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-07-09 12:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-09 12:09:27 +0300
commitc3b45354d720654215eb0e7b8e718ba6ea2d7a96 (patch)
tree359066e91bad08ae8e404bb43316705b7b53993e /app/helpers/todos_helper.rb
parent734708924b0f86ad3c23636bd6a8942d679daaf2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r--app/helpers/todos_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index 9842ae01f57..b9a6cab07a8 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -22,6 +22,7 @@ module TodosHelper
when Todo::APPROVAL_REQUIRED then "set #{todo_action_subject(todo)} as an approver for"
when Todo::UNMERGEABLE then 'Could not merge'
when Todo::DIRECTLY_ADDRESSED then "directly addressed #{todo_action_subject(todo)} on"
+ when Todo::MERGE_TRAIN_REMOVED then "Removed from Merge Train:"
end
end
@@ -197,6 +198,10 @@ module TodosHelper
"&middot; #{content}".html_safe
end
+ def todo_author_display?(todo)
+ !todo.build_failed? && !todo.unmergeable?
+ end
+
private
def todos_design_path(todo, path_options)