scinote-web/app/helpers/user_assignments_helper.rb
2021-04-18 17:19:16 +02:00

12 lines
356 B
Ruby

# frozen_string_literal: true
module UserAssignmentsHelper
def current_assignee_name(assignee)
display_name = if assignee == current_user
[assignee.name, t('user_assignment.current_assignee')].join(' ')
else
assignee.name
end
sanitize_input(display_name)
end
end