demarches-normaliennes/app/helpers/email_helper.rb

14 lines
287 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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