mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 20:56:52 +08:00
12 lines
356 B
Ruby
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
|