Files
openfoodnetwork/app/helpers/mailer_helper.rb
Maikel Linke a971b62068 Emphasise ways to get help in user emails
We had a very prominent footer showing how to get in contact with the
local instance people but most users need to get in contact with the
enterprise they are buying from. So removing all those details and
replacing them by a simple "powered by" line will hopefully direct
attention to the shop's contact details.
2021-02-23 11:24:55 +11:00

14 lines
307 B
Ruby

# frozen_string_literal: true
module MailerHelper
def footer_ofn_link
ofn = I18n.t("shared.mailers.powered_by.open_food_network")
if ContentConfig.footer_email.present?
mail_to ContentConfig.footer_email, ofn
else
link_to ofn, "https://www.openfoodnetwork.org"
end
end
end