demarches-normaliennes/app/helpers/email_helper.rb

12 lines
256 B
Ruby
Raw Normal View History

module EmailHelper
2021-04-08 17:13:39 +02:00
def status_color_code(status)
if status.include?('delivered')
return 'email-sent'
2021-04-08 17:13:39 +02:00
elsif status.include?('blocked') || status.include?('hardBounces')
return 'email-blocked'
else
return ''
end
end
end