2011-06-28 10:24:40 -07:00
|
|
|
- title "Support Dress to Impress"
|
|
|
|
|
2014-09-11 18:58:37 -07:00
|
|
|
- if @campaign.progress > 0
|
|
|
|
= campaign_progress(@campaign) do
|
2015-09-22 22:19:43 -07:00
|
|
|
We've received #{cents_to_currency(@campaign.progress)}
|
2015-08-05 16:26:12 -07:00
|
|
|
toward #{@campaign.name}.
|
2014-09-11 15:40:37 -07:00
|
|
|
Thanks so much!
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-09 18:41:58 -07:00
|
|
|
= form_tag donations_path, method: 'POST', id: 'donation-form',
|
2014-09-10 13:38:26 -07:00
|
|
|
'data-checkout-image' => image_path('default_preview.png'),
|
2015-08-05 16:26:12 -07:00
|
|
|
'data-checkout-publishable-key' => Rails.configuration.stripe[:publishable_key],
|
|
|
|
'data-campaign-theme' => @campaign.theme_id do
|
2014-09-09 18:41:58 -07:00
|
|
|
= hidden_field_tag 'donation[stripe_token]'
|
2014-12-23 20:22:15 -08:00
|
|
|
= hidden_field_tag 'donation[stripe_token_type]'
|
2014-09-10 12:32:54 -07:00
|
|
|
= hidden_field_tag 'donation[donor_email]'
|
2014-09-09 16:02:49 -07:00
|
|
|
%header
|
|
|
|
%p#donation-form-title
|
|
|
|
Thanks for supporting Dress to Impress!
|
|
|
|
%p#donation-form-subtitle
|
2014-09-10 12:32:54 -07:00
|
|
|
Securely powered by #{link_to 'Stripe', 'https://stripe.com/'}.
|
|
|
|
We never, ever see your payment info.
|
|
|
|
%br
|
2014-09-09 16:02:49 -07:00
|
|
|
All donations go directly to our hosting costs. Thanks for your help!
|
|
|
|
%div
|
|
|
|
= precede '$' do
|
2014-09-09 19:06:38 -07:00
|
|
|
= text_field_tag 'donation[amount]', '10.00'
|
2014-09-09 16:02:49 -07:00
|
|
|
%button{:type => 'submit'} Donate now!
|
|
|
|
|
2015-08-30 16:49:46 -07:00
|
|
|
#description= emote_md @campaign.description
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-11 18:58:37 -07:00
|
|
|
- if @donations.present?
|
|
|
|
%h2 Thanks to our lovely donors!
|
|
|
|
%ul#outfits
|
|
|
|
- @donations.each do |donation|
|
2014-11-20 12:27:12 -08:00
|
|
|
-# if large_donation?(donation.amount)
|
2014-09-13 18:54:39 -07:00
|
|
|
%li.banner
|
|
|
|
%span
|
|
|
|
Thanks, #{donation.donor_name}, for donating
|
|
|
|
#{number_to_currency(donation.amount / 100.0)}!
|
2014-09-11 18:58:37 -07:00
|
|
|
- donation.features.each do |feature|
|
2014-09-13 18:54:39 -07:00
|
|
|
- if outfit_image?(feature.outfit) || !large_donation?(donation.amount)
|
|
|
|
%li
|
|
|
|
- if outfit_image?(feature.outfit)
|
|
|
|
= link_to image_tag(feature.outfit.image.small.url), feature.outfit
|
|
|
|
- else
|
|
|
|
= image_tag 'default_preview.png'
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-13 18:54:39 -07:00
|
|
|
%header Thanks, #{donation.donor_name.presence || 'Anonymous'}!
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2015-08-05 16:26:12 -07:00
|
|
|
- if @campaign.active?
|
|
|
|
%p#last-years-donors= link_to "Don't forget to check out last year's donors, too!", Campaign.first
|
|
|
|
|
2014-09-09 16:02:49 -07:00
|
|
|
#fine-print
|
2014-09-13 20:59:44 -07:00
|
|
|
%h2 Other ways to donate
|
|
|
|
:markdown
|
|
|
|
We were considering PayPal for accepting donations, but ended up choosing
|
|
|
|
Stripe as our primary donation method because it's easy to integrate and
|
|
|
|
because it's well-trusted in the developer community—and because we've
|
|
|
|
heard too many horror stories of small organizations having their PayPal
|
|
|
|
accounts locked down when they suddenly start receiving a bunch of
|
|
|
|
transactions. Scary stuff.
|
|
|
|
|
|
|
|
But, even though PayPal isn't integrated into the site, we'll still gladly
|
|
|
|
accept individual donations through PayPal if you'd prefer.
|
2015-08-30 16:49:46 -07:00
|
|
|
#{mail_to 'webmaster@openneo.net', "Drop us an email and we'll talk
|
|
|
|
details."} Thanks!
|
2014-09-13 20:59:44 -07:00
|
|
|
|
2014-09-09 16:02:49 -07:00
|
|
|
%h2 Some notes on featured outfits
|
|
|
|
:markdown
|
2014-09-13 20:59:44 -07:00
|
|
|
When you make a donation, we'll divide the amount by $5 USD, and, rounding
|
2014-09-09 16:02:49 -07:00
|
|
|
down, that's how many of your outifts we'll feature. Cool, eh?
|
|
|
|
|
|
|
|
This is our way of publicly thanking our donors.
|
|
|
|
(Thanks again, by the way!)
|
|
|
|
We love them very much and want to bring attention to their awesomeness.
|
|
|
|
However, there are a few important bits of legal whatnot to keep in mind.
|
|
|
|
(Mostly, it's the list of things that we expect to do but in no legally
|
|
|
|
binding way promise to do. Just in case
|
2015-08-30 16:49:46 -07:00
|
|
|
#{image_tag 'emoticons/tongue.gif'}
|
2014-09-09 16:02:49 -07:00
|
|
|
|
|
|
|
Featuring your outfit is a thank-you gift that we like to give our donors;
|
2014-09-11 18:43:40 -07:00
|
|
|
it is *not* a purchased service. We make no guarantee that we'll post your
|
2014-09-09 16:02:49 -07:00
|
|
|
outfit on any page for any particular amount of time, or even at all.
|
|
|
|
(That said, we expect to publicly list our donors' outfits somewhere on the
|
2014-09-11 18:43:40 -07:00
|
|
|
site for as long as the site lives, and in rotation on the homepage until
|
|
|
|
some other site event or feature needs the space.)
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2015-08-30 16:49:46 -07:00
|
|
|
We reserve the right to refuse to post any content for any reason, and we
|
|
|
|
reserve the right to remove any previously posted content at any time for
|
|
|
|
any reason. If we don't like the outfit's name, the outfit's appearance,
|
|
|
|
or the name on your donation, or anything else, then we don't have to
|
|
|
|
publish it, and we won't necessarily refund you—especially if the content
|
|
|
|
seems malicious.
|
2014-09-10 13:38:26 -07:00
|
|
|
(That said, we intend to allow most any name and outfit that are
|
|
|
|
appropriate for Neopians of all ages.)
|
2011-07-01 11:53:28 -07:00
|
|
|
|
2015-08-30 16:49:46 -07:00
|
|
|
If you change your mind about donating, no worries: you can request a
|
|
|
|
refund within 60 days of donating, and, so long as you're acting in good
|
|
|
|
faith, we'll refund the entire donation.
|
|
|
|
(For example, if you realize you can't afford to donate, or legit just
|
|
|
|
change your mind, then we'd love to help you out :)
|
|
|
|
But we don't want people posting obscene outfits and expecting refunds once
|
|
|
|
we take them down, so we need a refund policy that lets us reject those
|
|
|
|
requests #{image_tag 'emoticons/tongue.gif'}
|
|
|
|
So, we determine "good faith" at our sole discretion—not limited to those
|
2014-09-10 13:38:26 -07:00
|
|
|
examples—but we're generally pretty understanding.)
|
2011-07-01 11:53:28 -07:00
|
|
|
|
2014-09-09 16:02:49 -07:00
|
|
|
**TL;DR: We love to help and acknowledge our good-faith donors,
|
|
|
|
but reserve the right not to do those things,
|
|
|
|
in order to better handle bad-faith donors and unexpected circumstances.**
|
2015-08-30 16:49:46 -07:00
|
|
|
That's all #{image_tag 'emoticons/smiley.gif'}
|
2014-09-09 18:24:27 -07:00
|
|
|
|
|
|
|
- content_for :javascripts do
|
|
|
|
= javascript_include_tag 'https://checkout.stripe.com/checkout.js',
|
|
|
|
'static/donate.js'
|