Skip to content
Snippets Groups Projects

Remove todos_vue_application feature flag and purge all code

Merged Thomas Hutterer requested to merge 509080-rm-haml-todos into master
All threads resolved!
2 files
+ 0
53
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,7+7,7 @@
def todos_done_count
@todos_done_count ||= current_user.todos_done_count
end
def todo_action_name(todo) # rubocop:disable Metrics/CyclomaticComplexity -- Will be removed/refactored as part of https://gitlab.com/gitlab-org/gitlab/-/issues/464069
case todo.action
@@ -57,7+57,7 @@
else
# Note: Some todos (like for expired SSH keys) are neither related to a project nor a group.
return unless todo.project.present?
title = content_tag(:span, todo.project.name, class: 'project-name')
namespace = content_tag(:span, "#{todo.project.namespace.human_name} / ", class: 'namespace-name')
@@ -67,7+67,7 @@
end
end
def todo_target_aria_label(todo)
target_type = if todo.for_design?
_('Design')
elsif todo.for_alert?
_('Alert')
elsif todo.member_access_requested?
_('Group')
elsif todo.for_issue_or_work_item?
IntegrationsHelper.integration_issue_type(todo.target.issue_type)
else
IntegrationsHelper.integration_todo_target_type(todo.target_type)
end
"#{target_type} #{todo_target_name(todo)}"
end
def todo_target_path(todo)
return unless todo.target.present?
path_options = todo_target_path_options(todo)
if todo.for_commit?
project_commit_path(todo.project, todo.target, path_options)
elsif todo.for_design?
todos_design_path(todo, path_options)
elsif todo.for_alert?
@@ -173,7+157,7 @@
s_('Todos|Isn\'t an empty To-Do List beautiful?'),
s_('Todos|Give yourself a pat on the back!'),
s_('Todos|Nothing left to do. High five!'),
s_('Todos|Henceforth, you shall be known as "To-Do Destroyer"')
]
end
Loading