demarches-normaliennes/app/helpers/email_helper.rb
2024-08-22 09:26:48 +02:00

13 lines
287 B
Ruby

# frozen_string_literal: true
module EmailHelper
def status_color_code(status)
if status.include?('delivered')
return 'email-sent'
elsif status.include?('blocked') || status.include?('hardBounces')
return 'email-blocked'
else
return ''
end
end
end