1
0
Fork 0
forked from OpenNeo/impress

update campaign final stretch copy

This commit is contained in:
Matt Dunn-Rankin 2017-01-09 11:35:55 -08:00
parent 17f289f68f
commit 512b64a104

View file

@ -39,8 +39,12 @@ module ApplicationHelper
pitch = "We've met this year's fundraising goal! Thanks, everybody!" pitch = "We've met this year's fundraising goal! Thanks, everybody!"
prompt = "Learn more" prompt = "Learn more"
elsif campaign.remaining < 200_00 elsif campaign.remaining < 200_00
estimate = (campaign.remaining.to_f / 5_00).ceil * 5_00 estimate = (campaign.remaining.to_f / 10_00).ceil * 10_00
pitch = "We're less than #{cents_to_currency(estimate, precision: 0)} away from paying this year's hosting costs!" if estimate == campaign.remaining
pitch = "We're only #{cents_to_currency(estimate, precision: 0)} away from paying #{campaign.purpose}!"
else
pitch = "We're less than #{cents_to_currency(estimate, precision: 0)} away from paying #{campaign.purpose}!"
end
prompt = "Donate now" prompt = "Donate now"
else else
pitch = "Help Dress to Impress stay online!" pitch = "Help Dress to Impress stay online!"