demarches-normaliennes/app/helpers/email_helper.rb
2021-04-13 10:57:26 +02:00

11 lines
256 B
Ruby

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