diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-09 12:09:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-09 12:09:27 +0300 |
commit | c3b45354d720654215eb0e7b8e718ba6ea2d7a96 (patch) | |
tree | 359066e91bad08ae8e404bb43316705b7b53993e /app/helpers/todos_helper.rb | |
parent | 734708924b0f86ad3c23636bd6a8942d679daaf2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 5 |
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 "· #{content}".html_safe end + def todo_author_display?(todo) + !todo.build_failed? && !todo.unmergeable? + end + private def todos_design_path(todo, path_options) |