mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Merge pull request #1045 from lin-d-hop/sign_up_email_i18n
Sign up email i18n Merging so that I can test emails on UK staging.
This commit is contained in:
@@ -6,9 +6,9 @@ module Admin
|
||||
{name: 'Producer signup page', preferences: [:producer_signup_pricing_table_html, :producer_signup_case_studies_html, :producer_signup_detail_html]},
|
||||
{name: 'Hub signup page', preferences: [:hub_signup_pricing_table_html, :hub_signup_case_studies_html, :hub_signup_detail_html]},
|
||||
{name: 'Group signup page', preferences: [:group_signup_pricing_table_html, :group_signup_case_studies_html, :group_signup_detail_html]},
|
||||
{name: 'Footer', preferences: [:footer_logo,
|
||||
{name: 'Footer and External Links', preferences: [:footer_logo,
|
||||
:footer_facebook_url, :footer_twitter_url, :footer_instagram_url, :footer_linkedin_url, :footer_googleplus_url, :footer_pinterest_url,
|
||||
:footer_email, :footer_links_md, :footer_about_url, :footer_tos_url]}]
|
||||
:footer_email, :community_forum_url, :footer_links_md, :footer_about_url, :footer_tos_url]}]
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
@@ -34,6 +34,8 @@ class ContentConfiguration < Spree::Preferences::FileConfiguration
|
||||
# Footer
|
||||
preference :footer_logo, :file
|
||||
has_attached_file :footer_logo, default_url: "/assets/ofn-logo-footer.png"
|
||||
|
||||
#Other
|
||||
preference :footer_facebook_url, :string, default: "https://www.facebook.com/OpenFoodNet"
|
||||
preference :footer_twitter_url, :string, default: "https://twitter.com/OpenFoodNet"
|
||||
preference :footer_instagram_url, :string, default: ""
|
||||
@@ -41,6 +43,7 @@ class ContentConfiguration < Spree::Preferences::FileConfiguration
|
||||
preference :footer_googleplus_url, :string, default: ""
|
||||
preference :footer_pinterest_url, :string, default: ""
|
||||
preference :footer_email, :string, default: "hello@openfoodnetwork.org"
|
||||
preference :community_forum_url, :string, default: "http://community.openfoodnetwork.org"
|
||||
preference :footer_links_md, :text, default: <<-EOS
|
||||
[Newsletter sign-up](/)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
= t :email_admin_html, link: link_to('Admin Panel', spree.admin_url)
|
||||
|
||||
%p
|
||||
= t :email_community_html, link: link_to('Join the community.', 'http://community.openfoodnetwork.org/')
|
||||
= t :email_community_html, link: link_to("t(:join_the_community)", "#{ ContentConfig.community_forum_url }")
|
||||
|
||||
%p
|
||||
= t :email_help
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
%p.lead
|
||||
= t :email_signup_text
|
||||
%p
|
||||
= t :email_signup_help_html
|
||||
%a{:href => "mailto:hello@openfoodnetwork.org", :target => "_blank"}
|
||||
hello@openfoodnetwork.org
|
||||
= t :email_signup_help_html, email: mail_to(ContentConfig.footer_email, ContentConfig.footer_email)
|
||||
|
||||
= render 'shared/mailers/signoff'
|
||||
|
||||
|
||||
@@ -401,6 +401,7 @@ en:
|
||||
email_admin_html: "You can manage your account by logging into the %{link} or by clicking on the cog in the top right hand side of the homepage, and selecting Administration."
|
||||
email_community_html: "We also have an online forum for community discussion related to OFN software and the unique challenges of running a food enterprise. You are encouraged to join in. We are constantly evolving and your input into this forum will shape what happens next.
|
||||
%{link}"
|
||||
join_community: "Join the community"
|
||||
email_help: "If you have any difficulties, check out our FAQs, browse the forum or post a 'Support' topic and someone will help you out!"
|
||||
email_confirmation_greeting: "Hi, %{contact}!"
|
||||
email_confirmation_profile_created: "A profile for %{name} has been successfully created!
|
||||
@@ -448,7 +449,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
email_signup_text: "Thanks for joining the network.
|
||||
If you are a customer, we look forward to introducing you to many fantastic farmers, wonderful food hubs and delicious food!
|
||||
If you are a producer or food enterprise, we are excited to have you as a part of the network."
|
||||
email_signup_help_html: "We welcome all your questions and feedback; you can use the <em>Send Feedback</em> button on the site or email us at"
|
||||
email_signup_help_html: "We welcome all your questions and feedback; you can use the <em>Send Feedback</em> button on the site or email us at %{email}"
|
||||
|
||||
producer_mail_greeting: "Dear"
|
||||
producer_mail_text_before: "We now have all the consumer orders for the next food drop."
|
||||
|
||||
Reference in New Issue
Block a user